Lines Matching defs:pids
50 static void show_pid_array(pid_t pids[], unsigned n_pids, const char *prefix, unsigned n_columns, bool extra, bool more, bool kernel_threads, OutputFlags flags) {
56 qsort(pids, n_pids, sizeof(pid_t), compare);
60 if (pids[i] == pids[j])
62 pids[++j] = pids[i];
65 pid_width = DECIMAL_STR_WIDTH(pids[j]);
78 get_process_cmdline(pids[i], n_columns, true, &t);
85 printf("%*"PID_PRI" %s\n", pid_width, pids[i], strna(t));
94 _cleanup_free_ pid_t *pids = NULL;
113 if (!GREEDY_REALLOC(pids, n_allocated, n + 1))
117 pids[n++] = pid;
123 show_pid_array(pids, n, prefix, n_columns, false, more, kernel_threads, flags);
218 static int show_extra_pids(const char *controller, const char *path, const char *prefix, unsigned n_columns, const pid_t pids[], unsigned n_pids, OutputFlags flags) {
240 r = cg_pid_get_path(controller, pids[i], &k);
247 copy[j++] = pids[i];