int get_priority_limits(int which, int min_or_max);
This syscall returns the minimum and maximum priority that the params for
functions like sched_setscheduler take for which scheduler policy.
It never fails.
If min_or_max is not zero, the maximum priority is returned, otherwise,
the minimum.