9.71 get_min/max_priority

int get_min_prio(void);
int get_max_prio(void);

This syscalls return the minimum and maximum priority that the params for sched_setscheduler take, they never fail.