LSTATUS(3PROC) Process Control Library Functions LSTATUS(3PROC)
NAME
Lstatus - obtain thread status structure
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h> const lwpstatus_t * Pstatus(
struct ps_lwphandle *L);
DESCRIPTION
The
Lstatus() function returns the status information about the thread
handle
L. The
lwpstatus_t structure is defined in
proc(5) and contains
information about the thread including its flags, the size of its
stack, its user and system time, and more.
The returned pointer is only valid as long as the thread handle
L is
valid. After a call to
Lfree(3PROC), the returned data pointer is
invalid.
RETURN VALUES
Upon successful completion, the
Lstatus() function returns a pointer to
the status information of the process. It always succeeds.
INTERFACE STABILITY
UncommittedMT-LEVEL See
LOCKING in
libproc(3LIB).
SEE ALSO
libproc(3LIB),
Lfree(3PROC),
proc(5)illumos November 27, 2023 illumos