NAME
sched_get_priority_max
sched_get_priority_min — get
priority limits (REALTIME)
SYNOPSIS
#include <sched.h> int sched_get_priority_max(int policy); int sched_get_priority_min(int policy);
DESCRIPTION
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>.
RETURN VALUE
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.
ERRORS
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(3) functions are not supported by this implementation.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
sched_getparam(3) , sched_setparam(3) , sched_getscheduler(3) , sched_rr_get_interval(3) , sched_setscheduler(3) , <sched.h> .
DERIVATION
Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)