1sched_rr_get_interval(3C)Standard C Library Functionssched_rr_get_interval(3C)
2
3
4
6 sched_rr_get_interval - get execution time limits
7
9 #include <sched.h>
10
11 int sched_rr_get_interval(pid_t pid,
12 struct timespec *interval);
13
14
16 The sched_rr_get_interval() function updates the timespec structure
17 referenced by the interval argument to contain the current execution
18 time limit (that is, time quantum) for the process specified by pid. If
19 pid is 0, the current execution time limit for the calling process will
20 be returned.
21
23 If successful, the sched_rr_get_interval() function returns 0. Other‐
24 wise, it returns −1 and sets errno to indicate the error.
25
27 The sched_rr_get_interval() function will fail if:
28
29 ESRCH No process can be found corresponding to that specified by
30 pid.
31
32
34 See attributes(5) for descriptions of the following attributes:
35
36
37
38
39 ┌─────────────────────────────┬─────────────────────────────┐
40 │ATTRIBUTE TYPE │ATTRIBUTE VALUE │
41 ├─────────────────────────────┼─────────────────────────────┤
42 │Interface Stability │Committed │
43 ├─────────────────────────────┼─────────────────────────────┤
44 │MT-Level │MT-Safe │
45 ├─────────────────────────────┼─────────────────────────────┤
46 │Standard │See standards(5). │
47 └─────────────────────────────┴─────────────────────────────┘
48
50 librt(3LIB), sched.h(3HEAD), sched_getparam(3C), sched_setparam(3C),
51 sched_get_priority_max(3C), sched_getscheduler(3C), sched_setsched‐
52 uler(3C), attributes(5), standards(5)
53
54
55
56SunOS 5.11 1 Apr 2008 sched_rr_get_interval(3C)