Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PLWP_GETPSINFO(3PROC)  Process Control Library Functions PLWP_GETPSINFO(3PROC)
   2 
   3 NAME
   4      Plwp_getpsinfo - get thread specific ps information
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Plwp_getpsinfo(struct ps_prochandle *P, lwpid_t lwpid, lwpsinfo_t *lps);
  12 
  13 DESCRIPTION
  14      The Plwp_getpsinfo() function looks up the thread-specific ps(1)
  15      information for the thread specified by lwpid in the process handle P.
  16      The caller should provide a pointer to an lwpsinfo_t, lps, whose
  17      definition can be found in proc(4).  lps will be filled in with
  18      information such as the thread's id, its current state, priority, and
  19      run-time.
  20 
  21      The Plwp_getpsinfo() function only works on process handles that refer to
  22      active processes and core files, it does not work on process handles that
  23      refer to individual files.
  24 
  25 RETURN VALUES
  26      Upon successful completion, the Plwp_getpsinfo() function returns 0 and
  27      lps is filled in with the thread-specific ps(1) information.  Otherwise,


   1 PLWP_GETPSINFO(3PROC)  Process Control Library Functions PLWP_GETPSINFO(3PROC)
   2 
   3 NAME
   4      Plwp_getpsinfo - get thread specific ps information
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Plwp_getpsinfo(struct ps_prochandle *P, lwpid_t lwpid, lwpsinfo_t *lps);
  14 
  15 DESCRIPTION
  16      The Plwp_getpsinfo() function looks up the thread-specific ps(1)
  17      information for the thread specified by lwpid in the process handle P.
  18      The caller should provide a pointer to an lwpsinfo_t, lps, whose
  19      definition can be found in proc(4).  lps will be filled in with
  20      information such as the thread's id, its current state, priority, and
  21      run-time.
  22 
  23      The Plwp_getpsinfo() function only works on process handles that refer to
  24      active processes and core files, it does not work on process handles that
  25      refer to individual files.
  26 
  27 RETURN VALUES
  28      Upon successful completion, the Plwp_getpsinfo() function returns 0 and
  29      lps is filled in with the thread-specific ps(1) information.  Otherwise,