]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sched.7: Don't mention sched_setscheduler(2) in discussions of setting policies
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 12 May 2014 07:30:25 +0000 (09:30 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 14 May 2014 18:45:28 +0000 (20:45 +0200)
In a couple of places, sched_setscheduler(2) is mentioned as the
way of setting policies. But now there is sched_setattr(2) as
well, rewrite the text in a more generic way.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man7/sched.7

index b5b931ff7ea31ebf48aa7e94558fbe710d7bc516..a6d71b77b1c3103c33d8d41265e72b409f28a5c8 100644 (file)
@@ -305,8 +305,7 @@ threads can set a nonzero static priority (i.e., set a real-time
 scheduling policy).
 The only change that an unprivileged thread can make is to set the
 .B SCHED_OTHER
-policy, and this can be done only if the effective user ID of the caller of
-.BR sched_setscheduler ()
+policy, and this can be done only if the effective user ID of the caller
 matches the real or effective user ID of the target thread
 (i.e., the thread specified by
 .IR pid )
@@ -451,9 +450,7 @@ kernel, the additional configuration item
 becomes available.
 If this is selected, Linux is transformed into a regular
 real-time operating system.
-The FIFO and RR scheduling policies that can be selected using
-.BR sched_setscheduler ()
-are then used to run a thread
+The FIFO and RR scheduling policies are then used to run a thread
 with true real-time priority and a minimum worst-case scheduling latency.
 .SH SEE ALSO
 .ad l