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
38 .Fa "const char **lwps"
45 functions are utility functions which process an argument that may
46 refer to a currently active process or core file and attempts to obtain the
48 information from the process or core and fills it into
53 contains the name of something to try and open.
54 How it is interpreted depends on the value of
56 The following values may be passed in as a bitwise-exclusive-OR for
58 .Bl -tag -width Dv -offset indent
62 to specify process IDs and /proc arguments.
66 to specify core files.
68 Encompasses all of the previous opens.
75 pointer and in the event that the
81 will be updated with a more detailed error number.
87 then if there is a thread specification present in
89 it will be validated to see if it is a valid range and then a pointer to
90 the start of the thread specification will be stored in
92 For more information on determining process range validity, see
93 .Xr proc_lwp_range_valid 3PROC
94 for more information on valid and invalid tread specifications.
96 Upon successful completion, the
100 functions return the process identifier and fill in
102 with the ps information of the process.
107 is filled in with the error's details.
109 For a full list of additional errors, see the
112 .Xr Pgrab_core 3PROC .
116 contains an invalid thread specification.
119 was set and no core file could be found corresponding to
123 was set and no process could be found corresponding to
125 .It Er G_NOPROCORCORE
130 were set and no process or core file could be found corresponding to
133 .Sh INTERFACE STABILITY
141 .Xr Pgrab_core 3PROC ,
143 .Xr proc_lwp_range_valid 3PROC ,