Lines Matching refs:pid
45 # ionice -c<class> -n<level> -p<pid>
47 If pid isn't given, the current process is assumed. IO priority settings
54 For a running process, you can give the pid instead:
58 will change pid 100 to run at the realtime scheduling class, at priority 2.
119 int c, pid = 0;
132 pid = strtol(optarg, NULL, 10);
153 if (!pid && argv[optind])
154 pid = strtol(argv[optind], NULL, 10);
156 ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid);
158 printf("pid=%d, %d\n", pid, ioprio);
168 if (ioprio_set(IOPRIO_WHO_PROCESS, pid, ioprio | ioprio_class << IOPRIO_CLASS_SHIFT) == -1) {