Lines Matching refs:n_columns
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) {
68 n_columns = 0;
70 if (n_columns > pid_width+2)
71 n_columns -= pid_width+2;
73 n_columns = 20;
78 get_process_cmdline(pids[i], n_columns, true, &t);
90 static int show_cgroup_one_by_path(const char *path, const char *prefix, unsigned n_columns, bool more, bool kernel_threads, OutputFlags flags) {
123 show_pid_array(pids, n, prefix, n_columns, false, more, kernel_threads, flags);
128 int show_cgroup_by_path(const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, OutputFlags flags) {
137 if (n_columns <= 0)
138 n_columns = columns();
163 show_cgroup_one_by_path(path, prefix, n_columns, true, kernel_threads, flags);
176 show_cgroup_by_path(last, p1, n_columns-2, kernel_threads, flags);
188 show_cgroup_one_by_path(path, prefix, n_columns, !!last, kernel_threads, flags);
199 show_cgroup_by_path(last, p2, n_columns-2, kernel_threads, flags);
205 int show_cgroup(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, OutputFlags flags) {
215 return show_cgroup_by_path(p, prefix, n_columns, 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) {
228 if (n_columns <= 0)
229 n_columns = columns();
250 show_pid_array(copy, j, prefix, n_columns, true, false, false, flags);
255 int show_cgroup_and_extra(const char *controller, const char *path, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags) {
260 r = show_cgroup(controller, path, prefix, n_columns, kernel_threads, flags);
264 return show_extra_pids(controller, path, prefix, n_columns, extra_pids, n_extra_pids, flags);
267 int show_cgroup_and_extra_by_spec(const char *spec, const char *prefix, unsigned n_columns, bool kernel_threads, const pid_t extra_pids[], unsigned n_extra_pids, OutputFlags flags) {
277 return show_cgroup_and_extra(controller, path, prefix, n_columns, kernel_threads, extra_pids, n_extra_pids, flags);