This functions takes the following additional parameters: which You can use the following constants (defined in glibtop/proclist.h) to tell glibtop_get_proclist () which processes to fetch: GLIBTOP_KERN_PROC_ALL Fetch all processes. GLIBTOP_KERN_PROC_PID Fetch process with pid arg or nothing if no such process exists. GLIBTOP_KERN_PROC_PGRP Fetch only processes which are in process group arg. GLIBTOP_KERN_PROC_SESSION Fetch only processes with session id arg. GLIBTOP_KERN_PROC_TTY Fetch only processes with tty id arg. GLIBTOP_KERN_PROC_UID Fetch only processes with effective user id arg. GLIBTOP_KERN_PROC_RUID Fetch only processes with real user id arg. You can use one or more of the following flags (with a logical or) to hide some processes: GLIBTOP_EXCLUDE_IDLE Don't fetch idle processes. GLIBTOP_EXCLUDE_SYSTEM Don't fetch system processes. GLIBTOP_EXCLUDE_NOTTY Don't fetch processes that have no controlling tty. arg Additional argument depending upon the which argument. This function returns a pointer (of type unsigned *) to the list of process ids. You have to manually &glibtop-free; this pointer once finished with it.