Name
readproctab, freeproctab - read information for all current processes at onceSynopsis
#include <proc/readproc.h> proc_t** readproctab(int " flags ", ... );void freeproctab(proc_t **" p ");
Description
readproctab reads information on all processes matching the criteria fromflags
, allocating memory for everything as needed. It returns a NULL-terminated list of proc_t pointers. For more information on the arguments of readproctab ,see openproc(3). freeproctab frees all memory allocated by readproctab . The proc_t structure is defined in <proc/readproc.h>
, please look there for a definition of all fields.