sched_get_rr_interval(3) — Subroutines
Digital
NAME
sched_get_rr_interval − return the current quantum for process execution under the SCHED_RR policy (P1003.4/D10)
SYNOPSIS
#include <sched.h>
int sched_get_rr_interval (
struct timespec ∗min) ;
PARAMETERS
min The quantum for process execution under the SCHED_RR scheduling policy.
DESCRIPTION
The sched_get_rr_interval function returns the current quantum for process execution under the SCHED_RR policy. If a process, running under the round-robin scheduling policy, runs without blocking or yielding for more than this amount of time, it may be preempted by another runnable process (at the same priority).
No special privileges are needed to use the sched_get_rr_interval function.
RETURN VALUES
On a successful call, a value of 0 is returned. On an unsuccessful call, a value of −1 is returned and errno
is set to indicate the error.
ERRORS
The sched_get_rr_interval fails under the following conditions:
[EINVAL] The min parameter is NULL.
[ENOSYS] P1003.4/D10 priority scheduling is not configured in this implementation. Refer to the DEC OSF/1 Realtime Installation Guide for information on how to install the realtime software.
RELATED INFORMATION
sched_getscheduler(3), sched_get_sched_param(3), sched_setscheduler(3), sched_set_sched_param(3)