PROC_FDINFO_MISC(3PROC) Process Control Library Functions

NAME


proc_fdinfo_misc - retrieve a miscellaneous information item from a
prfdinfo_t structure

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

const void *
proc_fdinfo_misc(const prfdinfo_t *info, uint_t type, size_t *len);

DESCRIPTION


The proc_fdinfo_misc() function is a convenient way to retrieve a
miscellaneous information item from a prfdinfo_t structure.

If a miscellaneous item of type type is found, then this function
returns a pointer to the data for that item and updates len with the
item's size.

In the case that there are multiple instances of the requested type in
the structure, only the first is returned. To see all instances, use
the proc_fdinfowalk(3PROC) function.

The definition of the prfdinfo_t structure may be found in the fdinfo
section of proc(5).

RETURN VALUES


Upon successful completion, the proc_fdinfo_misc() function returns a
pointer to the first instance of data with the requested type.
Otherwise, NULL is returned to indicate that the item was not found.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
MT-Safe

SEE ALSO


libproc(3LIB), proc_fdinfowalk(3PROC), proc(5)

illumos November 27, 2023 illumos

tribblix@gmail.com :: GitHub :: Privacy