PLWP_GETPSINFO(3PROC) Process Control Library Functions PLWP_GETPSINFO(3PROC) NNAAMMEE PPllwwpp__ggeettppssiinnffoo - get thread specific ps information LLIIBBRRAARRYY Process Control Library (libproc, -lproc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t PPllwwpp__ggeettppssiinnffoo(_s_t_r_u_c_t _p_s___p_r_o_c_h_a_n_d_l_e _*_P, _l_w_p_i_d___t _l_w_p_i_d, _l_w_p_s_i_n_f_o___t _*_l_p_s); DDEESSCCRRIIPPTTIIOONN The PPllwwpp__ggeettppssiinnffoo() function looks up the thread-specific ps(1) information for the thread specified by _l_w_p_i_d in the process handle _P. The caller should provide a pointer to an llwwppssiinnffoo__tt, _l_p_s, whose definition can be found in proc(4). _l_p_s will be filled in with information such as the thread's id, its current state, priority, and run-time. The PPllwwpp__ggeettppssiinnffoo() 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. RREETTUURRNN VVAALLUUEESS Upon successful completion, the PPllwwpp__ggeettppssiinnffoo() function returns 00 and _l_p_s is filled in with the thread-specific ps(1) information. Otherwise, --11 is returned and eerrrrnnoo is set to indicate the error. EERRRROORRSS For a full list of possible errors also see the DDIIAAGGNNOOSSTTIICCSS section in proc(4). The PPllwwpp__ggeettppssiinnffoo() function will fail if: ENODATA _P refers to a file handle obtained through Pgrab_file(3PROC). EINVAL The process handle _P refers to a core file and the specified thread does not exist. ENOENT The process handle _P refers to an active process and the specified thread does not exist. IINNTTEERRFFAACCEE SSTTAABBIILLIITTYY UUnnccoommmmiitttteedd MMTT--LLEEVVEELL See LLOOCCKKIINNGG in ps(1), libproc(3LIB). SSEEEE AALLSSOO libproc(3LIB), proc(4) illumos May 11, 2016 illumos