Lines Matching full:mask

54 	cpuset_t			mask;  member
79 return ("Failed to get the thread cpuset mask"); in do_jail_errstr()
100 skip_ltncpu(int ncpu, cpuset_t *mask) in skip_ltncpu() argument
103 CPU_ZERO(mask); in skip_ltncpu()
105 -1, sizeof(*mask), mask)); in skip_ltncpu()
106 if (CPU_COUNT(mask) < ncpu) in skip_ltncpu()
169 cpuset_t dismask, mask, omask; in ATF_TC_BODY() local
176 CPU_ZERO(&mask); in ATF_TC_BODY()
178 CPU_COPY(&omask, &mask); in ATF_TC_BODY()
180 fcpu = CPU_FFS(&mask); in ATF_TC_BODY()
181 ncpu = CPU_COUNT(&mask); in ATF_TC_BODY()
184 * Turn off all but the first two for mask, turn off the first for in ATF_TC_BODY()
195 CPU_CLR(i, &mask); in ATF_TC_BODY()
203 -1, sizeof(mask), &mask)); in ATF_TC_BODY()
217 -1, sizeof(mask), &mask)); in ATF_TC_BODY()
221 -1, sizeof(mask), &mask)); in ATF_TC_BODY()
222 ATF_REQUIRE_EQ(1, CPU_COUNT(&mask)); in ATF_TC_BODY()
223 ATF_REQUIRE(CPU_ISSET(second, &mask)); in ATF_TC_BODY()
227 * cpuset to a completely disjoint mask should fail, because this in ATF_TC_BODY()
287 skip_ltncpu(ncpu, &cbp.mask); in do_jail_test()
344 cpuset_t *mask; in jail_attach_mutate_pro() local
347 mask = &cbp->mask; in jail_attach_mutate_pro()
350 count = CPU_COUNT(mask); in jail_attach_mutate_pro()
351 CPU_CLR(CPU_FFS(mask) - 1, mask); in jail_attach_mutate_pro()
352 ATF_REQUIRE_EQ(count - 1, CPU_COUNT(mask)); in jail_attach_mutate_pro()
354 -1, sizeof(*mask), mask)); in jail_attach_mutate_pro()
361 cpuset_t *mask; in jail_attach_newbase_epi() local
364 mask = &cbp->mask; in jail_attach_newbase_epi()
375 ATF_REQUIRE_EQ(0, CPU_CMP(mask, &info->jail_tidmask)); in jail_attach_newbase_epi()
408 * with their own mask, whether that's been modified or not.
414 cpuset_t *mask; in jail_attach_jset_epi() local
417 mask = &cbp->mask; in jail_attach_jset_epi()
421 ATF_REQUIRE_EQ(0, CPU_CMP(mask, &info->jail_tidmask)); in jail_attach_jset_epi()
525 cpuset_t mask; in try_attach_child() local
536 /* If we had an expected mask, check it against the new process mask. */ in try_attach_child()
537 CPU_ZERO(&mask); in try_attach_child()
539 -1, sizeof(mask), &mask) != 0) { in try_attach_child()
543 if (CPU_CMP(expected_mask, &mask) != 0) in try_attach_child()
652 cpuset_t mask; in ATF_TC_BODY() local
655 /* Need to mask off at least one CPU. */ in ATF_TC_BODY()
656 skip_ltncpu(2, &mask); in ATF_TC_BODY()
664 * Mask off the first CPU, then we'll reparent ourselves to our original in ATF_TC_BODY()
667 CPU_CLR(CPU_FFS(&mask) - 1, &mask); in ATF_TC_BODY()
669 -1, sizeof(mask), &mask)); in ATF_TC_BODY()