sched_rr_get_interval(2) sched_rr_get_interval(2)
sched_rr_get_interval - get round robin scheduling interval
#include <sched.h>
int sched_rr_get_interval (pid_t pid<b>, struct timespec *interval<b>)
sched_rr_get_interval stores the round robin scheduling interval at
address interval for the process named by pid. If pid is set to zero,
then sched_rr_get_interval obtains the interval for the calling process.
sched_rr_get_interval will fail if one or more of the following are true:
[EFAULT] The address specified by interval is outside the range of
the caller's address space.
[EPERM] The calling process attempted to obtain the scheduling
interval of an unrelated process and the caller does not
have the CAP_SCHED_MGT capability.
[ESRCH] The process named by pid does not exist.
sched_get_priority_max(2), sched_get_priority_min(2), sched_getparam(2),
sched_setparam(2), sched_setscheduler(2), sched_yield(2)
Upon successful completion, a value of 0 is returned to the calling
process. Otherwise, a value of -1 is returned and errno is set to
indicate the error.
PPPPaaaaggggeeee 1111 [ Back ]
|