3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
13 F(int,sched_ss_low_priority)
14 F(struct timespec,sched_ss_repl_period)
15 F(struct timespec,sched_ss_init_budget)
16 F(int,sched_ss_max_repl)
22 {int(*p)(int) = sched_get_priority_max;}
23 {int(*p)(int) = sched_get_priority_min;}
24 {int(*p)(pid_t,struct sched_param*) = sched_getparam;}
25 {int(*p)(pid_t) = sched_getscheduler;}
26 {int(*p)(pid_t,struct timespec*) = sched_rr_get_interval;}
27 {int(*p)(pid_t,const struct sched_param*) = sched_setparam;}
28 {int(*p)(pid_t,int,const struct sched_param*) = sched_setscheduler;}
29 {int(*p)(void) = sched_yield;}