PROCPS(3) Library Functions Manual PROCPS(3) procps -- /proc ' , , /proc: diskstats, meminfo, slabinfo, stat vmstat. #include _.h> int procps_new (struct info **info); int procps_ref (struct info *info); int procps_unref (struct info **info); struct result *procps_get ( struct info *info, [ const char *name, ] diskstats enum item item); struct stack *procps_select ( struct info *info, [ const char *name, ] diskstats enum item *items, int numitems); struct reaped *procps_reap ( struct info *info, [ enum reap_type what, ] stat enum item *items, int numitems); struct stack **procps_sort ( struct info *info, struct stack *stacks[], int numstacked, enum item sortitem, enum sort_order order); , - _. , <> <>, <> <> . _ , <<.h>>. -lproc2. <>, <> ( ' C, ). <> . <> <<>> . , <<>> , . . `noop' `extra'. , `extra' . . (item), , ( `result') . . . 1. procps_new() 2. procps_get(), procps_select() procps_reap() 3. procps_unref() get `result' `item'. , GET, , . select `result' `stack'. diskstats, slabinfo stat reap. `stacks', `result'. , (sort) . - <> <>, relative_enum, VAL, . : 0 numitems-1. , , <>. new, ref, unref, get select ' . new unref info. new NULL. unref NULL, . diskstats name get select slabinfo select `SLABS' (), reap `SLAB' (). stat what reap , NUMA. sort, , stacks numstacked `reaped'. , `int' ' , errno.h. . , ref unref info. , `address' NUL- errno. . , , <> . , <>. - , stderr. 1) CFLAGS='-DXTRA_PROCPS_DEBUG' - ./configure. 2) #include . . , . procps_misc(3), procps_pids(3), proc(5). procps-ng 3 2026 PROCPS(3)