2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
15 .Dt PLWP_GETPSINFO 3PROC
19 .Nd get thread specific ps information
25 .Fa "struct ps_prochandle *P"
33 looks up the thread-specific
35 information for the thread specified by
39 The caller should provide a pointer to an
42 whose definition can be found in
45 will be filled in with information such as the thread's id, its current
46 state, priority, and run-time.
50 function only works on process handles that refer to active processes
51 and core files, it does not work on process handles that refer to
54 Upon successful completion, the
68 is set to indicate the error.
70 For a full list of possible errors also see the
77 function will fail if:
81 refers to a file handle obtained through
82 .Xr Pgrab_file 3PROC .
86 refers to a core file and the specified thread does not exist.
90 refers to an active process and the specified thread does not exist.
92 .Sh INTERFACE STABILITY