Lines Matching +full:num +full:- +full:domains

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
78 { "round-robin", DOMAINSET_POLICY_ROUNDROBIN },
80 { "first-touch", DOMAINSET_POLICY_FIRSTTOUCH },
93 enum { NONE, NUM, DASH } state; in parselist() enumerator
106 curnum, size - 1); in parselist()
112 state = NUM; in parselist()
119 case NUM: in parselist()
130 case NUM: in parselist()
139 case '-': in parselist()
140 if (state != NUM) in parselist()
152 case NUM: in parselist()
168 if (cpuset_getaffinity(CPU_LEVEL_ROOT, CPU_WHICH_PID, -1, in parsecpulist()
179 * round-robin:0-4 explicit
180 * round-robin:all explicit root domains
181 * 0-4 implicit root policy
182 * round-robin implicit root domains
183 * all explicit root domains and implicit policy
196 if (cpuset_getdomain(CPU_LEVEL_ROOT, CPU_WHICH_PID, -1, in parsedomainlist()
201 for (policy = &policies[0]; policy->name != NULL; policy++) { in parsedomainlist()
202 if (strncasecmp(l, policy->name, strlen(policy->name)) == 0) { in parsedomainlist()
203 p = policy->policy; in parsedomainlist()
204 l += strlen(policy->name); in parsedomainlist()
241 static const char *policynames[] = { "invalid", "round-robin", "first-touch",
287 domainset_t domains; in main() local
296 DOMAINSET_ZERO(&domains); in main()
300 id = pid = tid = setid = -1; in main()
301 while ((ch = getopt(argc, argv, "Ccd:gij:l:n:p:rs:t:x:")) != -1) { in main()
334 parsedomainlist(optarg, &domains, &policy); in main()
364 argc -= optind; in main()
388 if (cpuset_setid(CPU_WHICH_PID, -1, setid)) in main()
396 -1, sizeof(mask), &mask) != 0) in main()
401 -1, sizeof(domains), &domains, policy) != 0) in main()
448 if (cpuset_setdomain(level, which, id, sizeof(domains), in main()
449 &domains, policy) != 0) in main()
461 "usage: cpuset [-l cpu-list] [-n policy:domain-list] [-s setid] cmd ...\n"); in usage()
463 " cpuset [-l cpu-list] [-n policy:domain-list] [-s setid] -p pid\n"); in usage()
465 " cpuset [-c] [-l cpu-list] [-n policy:domain-list] -C -p pid\n"); in usage()
467 " cpuset [-c] [-l cpu-list] [-n policy:domain-list]\n" in usage()
468 " [-j jailid | -p pid | -t tid | -s setid | -x irq]\n"); in usage()
470 " cpuset -g [-cir]\n" in usage()
471 " [-d domain | -j jailid | -p pid | -t tid | -s setid | -x irq]\n"); in usage()