Lines Matching refs:ps
173 void (*f)(char *buf, int size, const procps_status_t *ps);
211 static void func_user(char *buf, int size, const procps_status_t *ps) in func_user() argument
214 safe_strncpy(buf, get_cached_username(ps->uid), size+1); in func_user()
222 const char *user = get_cached_username(ps->uid); in func_user()
226 sprintf(buf, "%*u", size, (unsigned)ps->uid); in func_user()
230 static void func_group(char *buf, int size, const procps_status_t *ps) in func_group() argument
232 safe_strncpy(buf, get_cached_groupname(ps->gid), size+1); in func_group()
235 static void func_comm(char *buf, int size, const procps_status_t *ps) in func_comm() argument
237 safe_strncpy(buf, ps->comm, size+1); in func_comm()
240 static void func_state(char *buf, int size, const procps_status_t *ps) in func_state() argument
242 safe_strncpy(buf, ps->state, size+1); in func_state()
245 static void func_args(char *buf, int size, const procps_status_t *ps) in func_args() argument
247 read_cmdline(buf, size+1, ps->pid, ps->comm); in func_args()
250 static void func_pid(char *buf, int size, const procps_status_t *ps) in func_pid() argument
252 sprintf(buf, "%*u", size, ps->pid); in func_pid()
255 static void func_ppid(char *buf, int size, const procps_status_t *ps) in func_ppid() argument
257 sprintf(buf, "%*u", size, ps->ppid); in func_ppid()
260 static void func_pgid(char *buf, int size, const procps_status_t *ps) in func_pgid() argument
262 sprintf(buf, "%*u", size, ps->pgid); in func_pgid()
265 static void func_sid(char *buf, int size, const procps_status_t *ps) in func_sid() argument
267 sprintf(buf, "%*u", size, ps->sid); in func_sid()
279 static void func_vsz(char *buf, int size, const procps_status_t *ps) in func_vsz() argument
281 put_lu(buf, size, ps->vsz); in func_vsz()
284 static void func_rss(char *buf, int size, const procps_status_t *ps) in func_rss() argument
286 put_lu(buf, size, ps->rss); in func_rss()
289 static void func_tty(char *buf, int size, const procps_status_t *ps) in func_tty() argument
293 if (ps->tty_major) /* tty field of "0" means "no tty" */ in func_tty()
294 snprintf(buf, size+1, "%u,%u", ps->tty_major, ps->tty_minor); in func_tty()
298 static void func_rgroup(char *buf, int size, const procps_status_t *ps) in func_rgroup() argument
300 safe_strncpy(buf, get_cached_groupname(ps->rgid), size+1); in func_rgroup()
302 static void func_ruser(char *buf, int size, const procps_status_t *ps) in func_ruser() argument
304 safe_strncpy(buf, get_cached_username(ps->ruid), size+1); in func_ruser()
306 static void func_nice(char *buf, int size, const procps_status_t *ps) in func_nice() argument
308 sprintf(buf, "%*d", size, ps->niceness); in func_nice()
346 static void func_etime(char *buf, int size, const procps_status_t *ps) in func_etime() argument
351 mm = ps->start_time / get_kernel_HZ(); in func_etime()
355 static void func_time(char *buf, int size, const procps_status_t *ps) in func_time() argument
360 mm = (ps->utime + ps->stime) / get_kernel_HZ(); in func_time()
366 static void func_label(char *buf, int size, const procps_status_t *ps) in func_label() argument
368 safe_strncpy(buf, ps->context ? ps->context : "unknown", size+1); in func_label()
520 static void format_process(const procps_status_t *ps) in format_process() argument
526 out[i].f(p, out[i].width, ps); in format_process()