SCHED_GET_PRIORITY_MAX(2)

NAME
sched_rr_get_interval - Get round robin interval for process given by pid

SYNOPSIS
# include <sched.h>

int sched_rr_get_interval ( pid_t pid, struct timespec *t )

DESCRIPTION
The function sched_rr_get_interval returns the time quantum of the process specified by pid in the timespec structure argument t. If the pid is 0, the time quantum is retrieved from the calling process.

The process must be running with a scheduling policy of SCHED_RR.

On a failure sched_rr_get_interval returns -1 with errno indicating the error, otherwise sched_rr_get_interval returns in t the scheduling time quantum of the process given by pid.

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

EINVAL
    The structure timespec *t is not valid.

EINVAL
    The scheduling policy of the process specified by pid is not using scheduling policy SCHED_RR.

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