The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

sched_rr_get_interval - get execution time limits (REALTIME)

 SYNOPSIS



#include <sched.h>

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

 DESCRIPTION

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.

 RETURN VALUE

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

 ERRORS

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.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

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

DERIVATION

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

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]