PROC_FDINFO_MISC(3PROC) | Process Control Library Functions | PROC_FDINFO_MISC(3PROC) |
proc_fdinfo_misc
—
retrieve a miscellaneous information item from a prfdinfo_t
structure
Process Control Library (libproc, -lproc)
#include <libproc.h>
const void *
proc_fdinfo_misc
(const prfdinfo_t
*info, uint_t type, size_t
*len);
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).
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.
January 6, 2020 | OmniOS |