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

proc_get_psinfoget process ps information

Process Control Library (libproc, -lproc)

#include <libproc.h>

proc_get_psinfo(pid_t pid, psinfo_t *psp);

The () function is a convenient way to read the /proc psinfo file for the process pid. The ps(1) related information of the process will be filled into psp. The definition of the structure may be found in proc(5).

Upon successful completion, the proc_get_psinfo() function returns . Otherwise, is returned to indicate an error occurred.

libproc(3LIB), proc(5)

November 27, 2023 OmniOS