Lines Matching refs:cpu_set_t
75 } cpu_set_t;
77 extern int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set);
79 extern int sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set);
81 #define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t), set)
82 #define CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set)
83 #define CPU_CLR(cpu, set) CPU_CLR_S(cpu, sizeof(cpu_set_t), set)
84 #define CPU_ISSET(cpu, set) CPU_ISSET_S(cpu, sizeof(cpu_set_t), set)
85 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set)
86 #define CPU_EQUAL(set1, set2) CPU_EQUAL_S(sizeof(cpu_set_t), set1, set2)
92 #define __CPU_OP(dst, set1, set2, op) __CPU_OP_S(sizeof(cpu_set_t), dst, set1, set2, op)
94 /* Support for dynamically-allocated cpu_set_t */
102 extern cpu_set_t* __sched_cpualloc(size_t count);
103 extern void __sched_cpufree(cpu_set_t* set);
137 cpu_set_t* __dst = (dstset); \
147 extern int __sched_cpucount(size_t setsize, cpu_set_t* set);