sched_rr_get_interval - get 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:
- [ENOSYS]
- The sched_get_priority_max(), sched_get_priority_min() and sched_rr_get_interval() functions are not supported by this implementation.
- [ESRCH]
- No process can be found corresponding to that specified by pid.
None.
None.
None.
sched_getparam(), sched_setparam(), sched_get_priority_max(), sched_getscheduler(), sched_setscheduler(), <sched.h>.
Derived from the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995)