Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PADDR_TO_CTF(3PROC)    Process Control Library Functions   PADDR_TO_CTF(3PROC)
   2 
   3 NAME
   4      Paddr_to_ctf, Plmid_to_ctf, Pname_to_ctf - lookup CTF data
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      ctf_file_t *
  11      Paddr_to_ctf(struct ps_prochandle *P, uintptr_t addr);
  12 
  13      ctf_file_t *
  14      Plmid_to_ctf(struct ps_prochandle *P, Lmid_t lmid, const char *name);
  15 
  16      ctf_file_t *
  17      Pname_to_ctf(struct ps_prochandle *P, const char *name);
  18 
  19 DESCRIPTION
  20      The Paddr_to_ctf(), Plmid_to_ctf(), and Pname_to_ctf() functions lookup
  21      CTF (Compact C Type Format) data, for use with libctf, from the process
  22      represented by the handle P.  In all cases, the CTF sections of both the
  23      running executable and its shared libraries are searched.
  24 
  25      The CTF container returned is valid as long as the process handle P is
  26      valid.  That is, until a call to Prelease(3PROC) is made.  Further,
  27      consumers must not close the CTF container.


   1 PADDR_TO_CTF(3PROC)    Process Control Library Functions   PADDR_TO_CTF(3PROC)
   2 
   3 NAME
   4      Paddr_to_ctf, Plmid_to_ctf, Pname_to_ctf - lookup CTF data
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      ctf_file_t *
  13      Paddr_to_ctf(struct ps_prochandle *P, uintptr_t addr);
  14 
  15      ctf_file_t *
  16      Plmid_to_ctf(struct ps_prochandle *P, Lmid_t lmid, const char *name);
  17 
  18      ctf_file_t *
  19      Pname_to_ctf(struct ps_prochandle *P, const char *name);
  20 
  21 DESCRIPTION
  22      The Paddr_to_ctf(), Plmid_to_ctf(), and Pname_to_ctf() functions lookup
  23      CTF (Compact C Type Format) data, for use with libctf, from the process
  24      represented by the handle P.  In all cases, the CTF sections of both the
  25      running executable and its shared libraries are searched.
  26 
  27      The CTF container returned is valid as long as the process handle P is
  28      valid.  That is, until a call to Prelease(3PROC) is made.  Further,
  29      consumers must not close the CTF container.