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

NAME


Lprochandle - get process control handle from thread control handle

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

struct ps_prochandle *
Lprochandle(struct ps_lwphandle *L);

DESCRIPTION


The Lprochandle() function returns the process handle to which the thread
handle L belongs. This process handle may be used with other libproc(3LIB)
functions just as if Pgrab(3PROC) was called. The returned handle is valid
even if Lfree(3PROC) is called on L.

RETURN VALUES


Upon successful completion, the Lprochandle() function returns a pointer to
process handle.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), Lfree(3PROC), Pgrab(3PROC), Prelease(3PROC)

illumos November 27, 2023 illumos