1SCHED_RR_GET_INTERVAL(P) POSIX Programmer's Manual SCHED_RR_GET_INTERVAL(P)
2
3
4
6 sched_rr_get_interval - get execution time limits (REALTIME)
7
9 #include <sched.h>
10
11 int sched_rr_get_interval(pid_t pid, struct timespec *interval);
12
13
15 The sched_rr_get_interval() function shall update the timespec struc‐
16 ture referenced by the interval argument to contain the current execu‐
17 tion time limit (that is, time quantum) for the process specified by
18 pid. If pid is zero, the current execution time limit for the calling
19 process shall be returned.
20
22 If successful, the sched_rr_get_interval() function shall return zero.
23 Otherwise, it shall return a value of -1 and set errno to indicate the
24 error.
25
27 The sched_rr_get_interval() function shall fail if:
28
29 ESRCH No process can be found corresponding to that specified by pid.
30
31
32 The following sections are informative.
33
35 None.
36
38 None.
39
41 None.
42
44 None.
45
47 sched_getparam() , sched_get_priority_max() , sched_getscheduler() ,
48 sched_setparam() , sched_setscheduler() , the Base Definitions volume
49 of IEEE Std 1003.1-2001, <sched.h>
50
52 Portions of this text are reprinted and reproduced in electronic form
53 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
54 -- Portable Operating System Interface (POSIX), The Open Group Base
55 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
56 Electrical and Electronics Engineers, Inc and The Open Group. In the
57 event of any discrepancy between this version and the original IEEE and
58 The Open Group Standard, the original IEEE and The Open Group Standard
59 is the referee document. The original Standard can be obtained online
60 at http://www.opengroup.org/unix/online.html .
61
62
63
64IEEE/The Open Group 2003 SCHED_RR_GET_INTERVAL(P)