PSTATUS(3PROC) Process Control Library Functions PSTATUS(3PROC)
NAME
Pstatus - obtain process status structure
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h> const pstatus_t * Pstatus(
struct ps_prochandle *P);
DESCRIPTION
The
Pstatus() function returns the status information about the process
handle
P. The
pstatus_t structure is defined in
proc(5) and contains
information about the process including its flags, the number of
threads, the size of the stack, and more.
The returned pointer is only valid as long as the process handle
P is
valid. After a call to
Prelease(3PROC), the returned data pointer is
invalid.
RETURN VALUES
The
Pstatus() function always returns a pointer to the process's
status.
INTERFACE STABILITY
UncommittedMT-LEVEL See
LOCKING in
libproc(3LIB).
SEE ALSO
libproc(3LIB),
Prelease(3PROC),
proc(5)illumos May 11, 2016 illumos