Lines Matching defs:cpuset
405 typedef struct cpuset {
433 * Find one CPU in the cpuset.
450 * Atomic cpuset operations
451 * These are safe to use for concurrent cpuset manipulations.
454 * (e.g. attempting to add a cpu to a cpuset that's already there, or
455 * deleting a cpu that's not in the cpuset)
496 #define CPUSET(cpu) (1UL << (cpu))
499 #define CPUSET_ALL_BUT(set, cpu) ((void)((set) = ~CPUSET(cpu)))
500 #define CPUSET_ONLY(set, cpu) ((void)((set) = CPUSET(cpu)))
501 #define CPU_IN_SET(set, cpu) ((set) & CPUSET(cpu))
502 #define CPUSET_ADD(set, cpu) ((void)((set) |= CPUSET(cpu)))
503 #define CPUSET_DEL(set, cpu) ((void)((set) &= ~CPUSET(cpu)))
520 #define CPUSET_ATOMIC_DEL(set, cpu) atomic_and_ulong(&(set), ~CPUSET(cpu))
521 #define CPUSET_ATOMIC_ADD(set, cpu) atomic_or_ulong(&(set), CPUSET(cpu))