Lines Matching defs:pol
58 int pol, pri;
62 for (pol = 0; pol<ARRAY_LEN(polnames); pol++) if (polnames[pol])
63 printf("%s min/max priority\t: %d/%d\n", polnames[pol],
64 sched_get_priority_min(pol), sched_get_priority_max(pol));
73 if (-1==(pol = sched_getscheduler(TT.p))) perror_exit("pid %ld", TT.p);
74 if (pol & SCHED_RESET_ON_FORK) R = "|SCHED_RESET_ON_FORK";
75 if ((pol &= ~SCHED_RESET_ON_FORK)<ARRAY_LEN(polnames)) s = polnames[pol];
89 if (-1==(pol = highest_bit(toys.optflags&0x2f))) pol = SCHED_RR;
90 pri = atolx_range(*toys.optargs, sched_get_priority_min(pol),
91 sched_get_priority_max(pol));
92 if (toys.optflags&FLAG_R) pol |= SCHED_RESET_ON_FORK;
94 if (sched_setscheduler(TT.p, pol, (void *)&pri))