Top |
#define | GLIBTOP_KERN_PROC_ALL |
#define | GLIBTOP_KERN_PROC_PID |
#define | GLIBTOP_KERN_PROC_PGRP |
#define | GLIBTOP_KERN_PROC_SESSION |
#define | GLIBTOP_KERN_PROC_TTY |
#define | GLIBTOP_KERN_PROC_UID |
#define | GLIBTOP_KERN_PROC_RUID |
#define | GLIBTOP_KERN_PROC_MASK |
#define | GLIBTOP_EXCLUDE_IDLE |
#define | GLIBTOP_EXCLUDE_SYSTEM |
#define | GLIBTOP_EXCLUDE_NOTTY |
struct | glibtop_proclist |
pid_t * glibtop_get_proclist (glibtop_proclist *buf
,gint64 which
,gint64 arg
);
buf |
Extra return information, see glibtop_proclist. |
|
which |
Criteria for processes in returned list. See the GLIBTOP_KERN_PROC_* and GLIBTOP_EXCLUDE_* constants. |
|
arg |
Extra arguments applied to |
#define GLIBTOP_KERN_PROC_PID 1
Return all processes with the pid which is passed in arg
. You can use this to find out whether some process still exists.
#define GLIBTOP_KERN_PROC_PGRP 2
Return all processes in the process group passed in arg
.
#define GLIBTOP_KERN_PROC_SESSION 3
Return all processes in the session passed in arg
.
#define GLIBTOP_KERN_PROC_TTY 4
Return all processes which have the controlling tty passed in arg
(which is interpreted as the device number).
#define GLIBTOP_KERN_PROC_UID 5
Return all processes with the effective uid passed in arg
.
#define GLIBTOP_KERN_PROC_RUID 6
Return all processes with the real uid passed in arg
.
#define GLIBTOP_EXCLUDE_SYSTEM 0x2000
Exclude system (on most UNIXes root's) processes.
#define GLIBTOP_EXCLUDE_NOTTY 0x4000
Exclude processes without a controlling terminal.