sched_get_priority_max, sched_get_priority_min - get priority limits (REALTIME)
#include <sched.h> int sched_get_priority_max(int policy); int sched_get_priority_min(int policy);
The sched_get_priority_max() and sched_get_priority_min() functions return the appropriate maximum or minimum, respectfully, for the scheduling policy specified by policy.The value of policy is one of the scheduling policy values defined in <sched.h>.
If successful, the sched_get_priority_max() and sched_get_priority_min() functions return the appropriate maximum or minimum values, respectively. If unsuccessful, they return a value of -1 and set errno to indicate the error.
The sched_get_priority_max() and sched_get_priority_min() functions will fail if:
- [EINVAL]
- The value of the policy parameter does not represent a defined scheduling policy.
- [ENOSYS]
- The sched_get_priority_max(), sched_get_priority_min() and sched_rr_get_interval() functions are not supported by this implementation.
None.
None.
None.
sched_getparam(), sched_setparam(), sched_getscheduler(), sched_rr_get_interval(), sched_setscheduler(), <sched.h>.
Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)