Lines Matching defs:mask
22 usage: taskset [-ap] [mask] [PID | cmd [args...]]
28 is allowed to run on. PID without a mask displays existing affinity.
43 // mask is an array of long, which makes the layout a bit weird on big
48 unsigned long *mask = (unsigned long *)toybuf;
56 if (-1 == sched_getaffinity(pid, sizeof(toybuf), (void *)mask))
59 printf("pid %d's %s affinity mask: ", pid, i ? "new" : "current");
62 int x = 255 & (mask[j/sizeof(long)] >> (8*(j&(sizeof(long)-1))));
82 if (digit > 15) error_exit("bad mask '%s'", *toys.optargs);
83 mask[j/(2*sizeof(long))] |= digit << 4*(j&((2*sizeof(long))-1));
86 if (-1 == sched_setaffinity(pid, sizeof(toybuf), (void *)mask))