PCONTENT(3PROC) Process Control Library Functions PCONTENT(3PROC)

obtain process content types available

Process Control Library (libproc, -lproc)

#include <libproc.h>

Pcontent(struct ps_prochandle *P);

The Pcontent() function describes information available from the process handle P.

Different types of process handles have different kinds of content available to them. For example, handles to active and running processes have more information available than various core files, as the core file retains a subset of information available in the running process. Handles that refer to ELF objects, obtained through Pgrab_file(3PROC), will not have information such as a stack available. The content of core files is controlled by coreadm(1M).

The symbols that may be returned are listed in the core_content_t heading in the TYPES section in libproc(3LIB).

Upon successful completion, the Pcontent() function returns the bitwise-inclusive-OR of content types. Otherwise, CC_CONTENT_INVALID is returned to indicate an error.


See LOCKING in libproc(3LIB).

libproc(3LIB), Pcreate(3PROC), Pgrab(3PROC), Pgrab_core(3PROC), Pgrab_file(3PROC), proc(4)
August 20, 2019 illumos