get thread specific ps information
Process Control Library (libproc, -lproc)
, lwpid_t lwpid
() function looks up the
information for the thread
specified by lwpid
in the process handle
. The caller should provide a pointer to an
whose definition can be found in proc(4)
will be filled in with information such
as the thread's id, its current state, priority, and run-time.
() function only works on
process handles that refer to active processes and core files, it does not
work on process handles that refer to individual files.
Upon successful completion, the
() function returns
filled in with the thread-specific ps(1)
information. Otherwise, -1
is returned and
is set to indicate the error.
For a full list of possible errors also see the
() function will fail if:
- P refers to a file handle obtained
- The process handle P refers to a core
file and the specified thread does not exist.
- The process handle P refers to an active
process and the specified thread does not exist.