PROC_FDINFO_MISC(3PROC) Process Control Library Functions PROC_FDINFO_MISC(3PROC)

proc_fdinfo_miscretrieve 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 () 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, is returned to indicate that the item was not found.

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

November 27, 2023 OmniOS