SCHED_RR_GET_INTERVAL(3) Library Functions Manual SCHED_RR_GET_INTERVAL(3)

sched_rr_get_intervalget execution time limits (REALTIME)

#include <sched.h>

int sched_rr_get_interval(pid_t pid, struct timespec *interval);

The sched_rr_get_interval() function updates the timespec structure referenced by the interval argument to contain the current execution time limit (that is, time quantum) for the process specified by pid . If pid is zero, the current execution time limit for the calling process will be returned.

If successful, the sched_rr_get_interval() function returns zero. Otherwise, it returns a value of -1 and sets errno to indicate the error.

The sched_rr_get_interval() function will fail if:

The sched_get_priority_max(3) , sched_get_priority_min(3) and sched_rr_get_interval() functions are not supported by this implementation.
No process can be found corresponding to that specified by pid .

None.

None.

None.

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

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

February 1997 posix.fail