OSDN Git Service

(split) LDP_man-pages: update original to v3.34.
[linuxjm/LDP_man-pages.git] / original / man2 / sched_setscheduler.2
index 96ccfe6..863fc50 100644 (file)
@@ -44,7 +44,7 @@
 .\"
 .\" Worth looking at: http://rt.wiki.kernel.org/index.php
 .\"
-.TH SCHED_SETSCHEDULER 2 2010-10-04 "Linux" "Linux Programmer's Manual"
+.TH SCHED_SETSCHEDULER 2 2011-09-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 sched_setscheduler, sched_getscheduler \-
 set and get scheduling policy/parameters
@@ -354,11 +354,22 @@ as long as the effective user ID of the process making the change
 matches the real or effective user ID of the target process.
 .IP *
 Special rules apply for the
-.BR SCHED_IDLE :
+.BR SCHED_IDLE .
+In Linux kernels before 2.6.39,
 an unprivileged process operating under this policy cannot
 change its policy, regardless of the value of its
 .BR RLIMIT_RTPRIO
 resource limit.
+In Linux kernels since 2.6.39,
+.\" commit c02aa73b1d18e43cfd79c2f193b225e84ca497c8
+an unprivileged process can switch to either the
+.BR SCHED_BATCH
+or the
+.BR SCHED_NORMAL
+policy so long as its nice value falls within the range permitted by its
+.BR RLIMIT_NICE
+resource limit (see
+.BR getrlimit (2)).
 .PP
 Privileged
 .RB ( CAP_SYS_NICE )