sched_rr_get_interval - get the SCHED_RR interval for the named process
#include <sched.h>
int sched_rr_get_interval(pid_t pid, struct timespec *tp);
sched_rr_get_interval() writes into the
timespec(3) structure pointed to by tp
the
round-robin time quantum for the process identified by pid
. The
specified process should be running under the SCHED_RR
scheduling policy.
If pid
is zero, the time quantum for the calling process is
written into *tp
.
On success, sched_rr_get_interval() returns 0. On
error, -1 is returned, and errno
is set to indicate the
error.