summaryrefslogtreecommitdiffstats
path: root/man2/sched_rr_get_interval.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/sched_rr_get_interval.2')
-rw-r--r--man2/sched_rr_get_interval.241
1 files changed, 22 insertions, 19 deletions
diff --git a/man2/sched_rr_get_interval.2 b/man2/sched_rr_get_interval.2
index aff03bd9a..cbd62477b 100644
--- a/man2/sched_rr_get_interval.2
+++ b/man2/sched_rr_get_interval.2
@@ -7,7 +7,7 @@
.\" 1996-04-10 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de>
.\" revision
.\"
-.TH sched_rr_get_interval 2 2022-10-30 "Linux man-pages 6.03"
+.TH sched_rr_get_interval 2 2023-03-30 "Linux man-pages 6.05.01"
.SH NAME
sched_rr_get_interval \- get the SCHED_RR interval for the named process
.SH LIBRARY
@@ -64,16 +64,21 @@ The system call is not yet implemented (only on rather old kernels).
.B ESRCH
Could not find a process with the ID
.IR pid .
+.SH VERSIONS
+.SS Linux
+Linux 3.9 added
+.\" commit ce0dbbbb30aee6a835511d5be446462388ba9eee
+a new mechanism for adjusting (and viewing) the
+.B SCHED_RR
+quantum: the
+.I /proc/sys/kernel/sched_rr_timeslice_ms
+file exposes the quantum as a millisecond value, whose default is 100.
+Writing 0 to this file resets the quantum to the default value.
.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008.
-.SH NOTES
-POSIX systems on which
-.BR sched_rr_get_interval ()
-is available define
-.B _POSIX_PRIORITY_SCHEDULING
-in
-.IR <unistd.h> .
-.SS Linux notes
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001.
+.SS Linux
POSIX does not specify any mechanism for controlling the size of the
round-robin time quantum.
Older Linux kernels provide a (nonportable) method of doing this.
@@ -87,15 +92,13 @@ quantum has varied somewhat across kernel versions.
This method of adjusting the quantum was removed
.\" commit a4ec24b48ddef1e93f7578be53270f0b95ad666c
starting with Linux 2.6.24.
-.PP
-Linux 3.9 added
-.\" commit ce0dbbbb30aee6a835511d5be446462388ba9eee
-a new mechanism for adjusting (and viewing) the
-.B SCHED_RR
-quantum: the
-.I /proc/sys/kernel/sched_rr_timeslice_ms
-file exposes the quantum as a millisecond value, whose default is 100.
-Writing 0 to this file resets the quantum to the default value.
+.SH NOTES
+POSIX systems on which
+.BR sched_rr_get_interval ()
+is available define
+.B _POSIX_PRIORITY_SCHEDULING
+in
+.IR <unistd.h> .
.\" .SH BUGS
.\" As of Linux 1.3.81
.\" .BR sched_rr_get_interval ()