READPROCTAB(3)
β¨ NAME β¨
okay bestie, welcome to READPROCTAB(3) from the Linux Programmer's Manual π
It's giving process-info power couple: readproctab, freeproctab β read information for all current processes at once.
π¦ SYNOPSIS π¦
First, include the header:
#include <proc/readproc.h>
proc_t** readproctab(int flags, ... );
void freeproctab(proc_t **p);
π DESCRIPTION π
readproctab is the main character here: it reads information on all processes matching the criteria from flags, allocating memory for everything as needed. Then it returns a NULL-terminated list of proc_t pointers. For more information on the arguments of readproctab, see openproc(3).
freeproctab is the cleanup bestie: it 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.
π SEE ALSO π
openproc(3)readproc(3)/proc//usr/include/proc/readproc.h
π REPORTING BUGS π
Please send bug reports to procps@freelists.org
This page was brought to you by the Linux Manpage, dated 14 July 2014 πβ¨
π¦ where this page comes from
- centos-stream 9: procps-ng-devel 3.3.17-15.el9 Β· GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
- centos-stream 9: procps-ng-devel 3.3.17-15.el9 Β· GPL+ and GPLv2 and GPLv2+ and GPLv3+ and LGPLv2+
- ubuntu jammy: procps 2:3.3.17-6ubuntu2 Β· LGPL-2.1-or-later
- ubuntu jammy: procps 2:3.3.17-6ubuntu2.1 Β· LGPL-2.1-or-later
- Copyright 1996 Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>
- Copyright 2014 Jaromir Capik <jcapik@redhat.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms