42 # define SSTMAC_CPU_SETSIZE 64 44 # define SSTMAC_CPU_SET(cpu, cpusetp) SSTMAC_CPU_SET_S(cpu, 64, cpusetp) 45 # define SSTMAC_CPU_CLR(cpu, cpusetp) SSTMAC_CPU_CLR_S(cpu, 64, cpusetp) 46 # define SSTMAC_CPU_ISSET(cpu, cpusetp) SSTMAC_CPU_ISSET_S(cpu, 64, cpusetp) 47 # define SSTMAC_CPU_ZERO(cpusetp) SSTMAC_CPU_ZERO_S(64, cpusetp) 48 # define SSTMAC_CPU_COUNT(cpusetp) SSTMAC_CPU_COUNT_S(64, cpusetp) 56 #define SSTMAC_CPU_EQUAL(cpusetp1, cpusetp2) SSTMAC_CPU_EQUAL_S(64, cpusetp1, cpusetp2) 59 # define SSTMAC_CPU_AND(destset, srcset1, srcset2) SSTMAC_CPU_AND_S(destset, 64, srcset1, srcset2) 60 # define SSTMAC_CPU_OR(destset, srcset1, srcset2) SSTMAC_CPU_OR_S(destset, 64, srcset1, srcset2) 61 # define SSTMAC_CPU_XOR(destset, srcset1, srcset2) SSTMAC_CPU_XOR_S(destset, 64, srcset1, srcset2) 67 # define SSTMAC_CPU_ALLOC_SIZE(count) (1<<count) 82 #endif // SSTMAC_SCHED_H int SSTMAC_sched_getparam(pid_t pid, struct sched_param *param)
void SSTMAC_CPU_XOR_S(size_t setsize, sstmac_cpu_set_t *destset, sstmac_cpu_set_t *srcset1, sstmac_cpu_set_t *srcset2)
void SSTMAC_CPU_FREE(sstmac_cpu_set_t *cpuset)
void SSTMAC_CPU_CLR_S(int cpu, size_t setsize, sstmac_cpu_set_t *cpusetp)
void SSTMAC_CPU_OR_S(size_t setsize, sstmac_cpu_set_t *destset, sstmac_cpu_set_t *srcset1, sstmac_cpu_set_t *srcset2)
int SSTMAC_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param)
void SSTMAC_CPU_AND_S(size_t setsize, sstmac_cpu_set_t *destset, sstmac_cpu_set_t *srcset1, sstmac_cpu_set_t *srcset2)
int SSTMAC_sched_get_priority_min(int algorithm)
int SSTMAC_sched_get_priority_max(int algorithm)
int SSTMAC_CPU_ISSET_S(int cpu, size_t setsize, sstmac_cpu_set_t *)
int SSTMAC_CPU_COUNT_S(size_t setsize, sstmac_cpu_set_t *cpusetp)
sstmac_cpu_set_t * SSTMAC_CPU_ALLOC(int count)
int SSTMAC_sched_setparam(pid_t pid, const struct sched_param *param)
int SSTMAC_sched_setaffinity(pid_t pid, size_t cpusetsize, const sstmac_cpu_set_t *cpuset)
int SSTMAC_CPU_EQUAL_S(size_t setsize, sstmac_cpu_set_t *cpusetp1, sstmac_cpu_set_t *cpusetp2)
int SSTMAC_sched_getaffinity(pid_t pid, size_t cpusetsize, sstmac_cpu_set_t *cpuset)
void SSTMAC_CPU_SET_S(int cpu, size_t setsize, sstmac_cpu_set_t *cpusetp)
void SSTMAC_CPU_ZERO_S(size_t setsize, sstmac_cpu_set_t *cpusetp)
int SSTMAC_sched_rr_get_interval(pid_t pid, struct timespec *t)
int SSTMAC_sched_yield(void)
int SSTMAC_sched_getscheduler(pid_t pid)