Lines Matching refs:set
76 int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) __INTRODUCED_IN(12);
77 int sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) __INTRODUCED_IN(12);
79 #define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t), set) argument
80 #define CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set) argument
81 #define CPU_CLR(cpu, set) CPU_CLR_S(cpu, sizeof(cpu_set_t), set) argument
82 #define CPU_ISSET(cpu, set) CPU_ISSET_S(cpu, sizeof(cpu_set_t), set) argument
83 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set) argument
98 #define CPU_FREE(set) __sched_cpufree((set)) argument
101 void __sched_cpufree(cpu_set_t* set) __INTRODUCED_IN(12);
103 #define CPU_ZERO_S(setsize, set) __builtin_memset(set, 0, setsize) argument
105 #define CPU_SET_S(cpu, setsize, set) \ argument
109 (set)->__bits[__CPU_ELT(__cpu)] |= __CPU_MASK(__cpu); \
112 #define CPU_CLR_S(cpu, setsize, set) \ argument
116 (set)->__bits[__CPU_ELT(__cpu)] &= ~__CPU_MASK(__cpu); \
119 #define CPU_ISSET_S(cpu, setsize, set) \ argument
123 ? ((set)->__bits[__CPU_ELT(__cpu)] & __CPU_MASK(__cpu)) != 0 \
143 #define CPU_COUNT_S(setsize, set) __sched_cpucount((setsize), (set)) argument
145 int __sched_cpucount(size_t setsize, cpu_set_t* set) __INTRODUCED_IN(12);