SCHED_GET_PRIORITY_MAX(3) Library Functions Manual SCHED_GET_PRIORITY_MAX(3)

sched_get_priority_max sched_get_priority_minget 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 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:

The value of the policy parameter does not represent a defined scheduling policy.
The sched_get_priority_max() , sched_get_priority_min() and sched_rr_get_interval(3) functions are not supported by this implementation.

None.

None.

None.

sched_getparam(3) , sched_setparam(3) , sched_getscheduler(3) , sched_rr_get_interval(3) , sched_setscheduler(3) , <sched.h> .

Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)

February 1997 posix.fail