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 PROC_ARG_PSINFO 3PROC
20 .Nd process ps information utility function
37 .Fa "const char **lwps"
44 functions are utility functions which process an argument that may
45 refer to a currently active process or core file and attempts to obtain the
47 information from the process or core and fills it into
52 contains the name of something to try and open.
53 How it is interpreted depends on the value of
55 The following values may be passed in as a bitwise-exclusive-OR for
57 .Bl -tag -width Dv -offset indent
61 to specify process IDs and /proc arguments.
65 to specify core files.
67 Encompasses all of the previous opens.
74 pointer and in the event that the
80 will be updated with a more detailed error number.
86 then if there is a thread specification present in
88 it will be validated to see if it is a valid range and then a pointer to
89 the start of the thread specification will be stored in
91 For more information on determining process range validity, see
92 .Xr proc_lwp_range_valid 3PROC
93 for more information on valid and invalid tread specifications.
95 Upon successful completion, the
99 functions return the process identifier and fill in
101 with the ps information of the process.
106 is filled in with the error's details.
108 For a full list of additional errors, see the
111 .Xr Pgrab_core 3PROC .
115 contains an invalid thread specification.
118 was set and no core file could be found corresponding to
122 was set and no process could be found corresponding to
124 .It Er G_NOPROCORCORE
129 were set and no process or core file could be found corresponding to
132 .Sh INTERFACE STABILITY
140 .Xr Pgrab_core 3PROC ,
142 .Xr proc_lwp_range_valid 3PROC ,