Penguin
Blame: sched_rr_get_interval(2)
EditPageHistoryDiffInfoLikePages
Annotated edit history of sched_rr_get_interval(2) version 4, including all changes. View license author blame.
Rev Author # Line
1 perry 1 RR_GET_INTERVAL
2 !!!RR_GET_INTERVAL
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 CONFORMING TO
9 BUGS
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 sched_rr_get_interval - get the SCHED_RR interval for the named process
16 !!SYNOPSIS
17
18
19 __#include __
20
21
22 __int sched_rr_get_interval(pid_t__ ''pid''__, struct
23 timespec *__''tp''__);__
24
25
26 struct timespec {
27 time_t tv_sec; /* seconds */
28 long tv_nsec; /* nanoseconds */
29 };
30 !!DESCRIPTION
31
32
33 sched_rr_get_interval writes into the ''timespec''
34 structure pointed to by ''tp'' the round robin time
35 quantum for the process identified by ''pid''. If
36 ''pid'' is zero, the time quantum for the calling process
37 is written into *''tp''. The identified process should be
38 running under the ''SCHED_RR'' scheduling
39 policy.
40
41
42 The round robin time quantum value is not alterable under
43 Linux 1.3.81.
44
45
46 POSIX systems on which __sched_rr_get_interval__ is
47 available define ''_POSIX_PRIORITY_SCHEDULING'' in
48 ''
49 !!RETURN VALUE
50
51
52 On success, __sched_rr_get_interval__ returns 0. On
53 error, -1 is returned, and ''errno'' is set
54 appropriately.
55 !!ERRORS
56
57
58 __ESRCH__
59
60
61 The process whose ID is ''pid'' could not be
62 found.
63
64
65 __ENOSYS__
66
67
68 The system call is not yet implemented.
69 !!CONFORMING TO
70
71
72 POSIX.1b (formerly POSIX.4)
73 !!BUGS
74
75
76 As of Linux 1.3.81 __sched_rr_get_interval__ returns with
77 error ENOSYS, because SCHED_RR has not yet been fully
78 implemented and tested properly.
79 !!SEE ALSO
80
81
4 perry 82 sched_setscheduler(2) has a description of the Linux
1 perry 83 scheduling scheme.
84
85
86 ''Programming for the real world - POSIX.4'' by Bill O.
87 Gallmeister, O'Reilly
88 ''
89 IEEE Std 1003.1b-1993'' (POSIX.1b standard, formerly
90 POSIX.4)''
91 ISO/IEC 9945-1:1996''
92 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.