readproctab(3)

readproctab3

Read information for all current processes at once

Usage

#include <proc/readproc.h>

proc_t** readproctab(int flags, ... );
void freeproctab(proc_t **p);

Overview

readproctab reads information on all processes matching the criteria from flags, 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.

Releases

5 releases since Debian 1.2 (Rex); the text changed 1 time.

  1. 1.2–1.3
  2. 9–11

Reporting bugs

Please send bug reports to ⟨[email protected]⟩

From procps 2:3.3.17-5 in Debian 11 (Bullseye). Parsed by carta from the page's man source.