Searched refs:cpu_set_t (Results 1 – 5 of 5) sorted by relevance
| /third_party/ulib/musl/include/ |
| A D | sched.h | 50 typedef struct cpu_set_t { unsigned long __bits[128 / sizeof(long)]; } cpu_set_t; struct 51 int __sched_cpucount(size_t, const cpu_set_t*); 53 int sched_getaffinity(pid_t, size_t, cpu_set_t*); 54 int sched_setaffinity(pid_t, size_t, const cpu_set_t*); 67 const cpu_set_t* __src1, const cpu_set_t* __src2) { \ 86 #define CPU_ALLOC(n) ((cpu_set_t*)calloc(1, CPU_ALLOC_SIZE(n))) 91 #define CPU_SET(i, set) CPU_SET_S(i, sizeof(cpu_set_t), set) 92 #define CPU_CLR(i, set) CPU_CLR_S(i, sizeof(cpu_set_t), set) 93 #define CPU_ISSET(i, set) CPU_ISSET_S(i, sizeof(cpu_set_t), set) 97 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set) [all …]
|
| A D | pthread.h | 188 struct cpu_set_t; 189 int pthread_getaffinity_np(pthread_t, size_t, struct cpu_set_t*); 190 int pthread_setaffinity_np(pthread_t, size_t, const struct cpu_set_t*);
|
| /third_party/ulib/musl/src/sched/ |
| A D | affinity.c | 6 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t* set) { in sched_setaffinity() 11 int pthread_setaffinity_np(pthread_t td, size_t size, const cpu_set_t* set) { in pthread_setaffinity_np() 15 int sched_getaffinity(pid_t tid, size_t size, cpu_set_t* set) { in sched_getaffinity() 20 int pthread_getaffinity_np(pthread_t td, size_t size, cpu_set_t* set) { in pthread_getaffinity_np()
|
| A D | sched_cpucount.c | 4 int __sched_cpucount(size_t size, const cpu_set_t* set) { in __sched_cpucount()
|
| /third_party/ulib/jemalloc/src/ |
| A D | jemalloc.c | 751 cpu_set_t set; in malloc_ncpus()
|
Completed in 11 milliseconds