SCHED_GET_PRIORITY_MAX(2)

NAME
sched_get_priority_max - Get minimum priority value for a scheduling policy

SYNOPSIS
# include <sched.h>

int sched_get_priority_max ( int alg )

DESCRIPTION
The function sched_get_priority_max returns the maximum value for the scheduling policy (algorithm) given by alg. This implementation of POSIX.4 defines the following scheduling policies:

SCHED_FIFO      Run until blocked (First-in/First-out)

SCHED_RR        Round-Robin (Fixed time-slice)

SCHED_OTHER     The default Linux time-share scheduler

RETURN VALUE
On a failure sched_get_priority_max returns -1 with errno indicating the error, otherwise sched_get_priority_max returns the maximum value for the scheduling policy indicated.

ERRORS
When sched_get_priority_max fails, errno will be set to one among the following values:

EINVAL
    The scheduling policy specified by alg does not exist.

SEE ALSO
sched_get_priority_min(2), sched_getparam(2), sched_setparam(2), sched_rr_get_interval(2), sched_getscheduler(2), sched_setscheduler(2)