OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / sched_setparam.2
index 13f3797..6ab0ef1 100644 (file)
@@ -27,7 +27,7 @@
 .\"            revision
 .\" Modified 2004-05-27 by Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
-.TH SCHED_SETPARAM 2 2013-09-17 "Linux" "Linux Programmer's Manual"
+.TH SCHED_SETPARAM 2 2014-05-11 "Linux" "Linux Programmer's Manual"
 .SH NAME
 sched_setparam, sched_getparam \- set and get scheduling parameters
 .SH SYNOPSIS
@@ -55,7 +55,7 @@ the argument \fIparam\fP depends on the scheduling
 policy of the process identified by
 .IR pid .
 See
-.BR sched_setscheduler (2)
+.BR sched (7)
 for a description of the scheduling policies supported under Linux.
 
 .BR sched_getparam ()
@@ -75,7 +75,7 @@ and
 
 For a discussion of the privileges and resource limits related to
 scheduling priority and policy, see
-.BR sched_setscheduler (2).
+.BR sched (7).
 
 POSIX systems on which
 .BR sched_setparam ()
@@ -96,10 +96,19 @@ is set appropriately.
 .SH ERRORS
 .TP
 .B EINVAL
+Invalid arguments:
+.I param
+is NULL or
+.I pid
+is negative
+.TP
+.B EINVAL
+.RB ( sched_setparam ())
 The argument \fIparam\fP does not make sense for the current
 scheduling policy.
 .TP
 .B EPERM
+.RB ( sched_setparam ())
 The calling process does not have appropriate privileges
 (Linux: does not have the
 .B CAP_SYS_NICE
@@ -114,7 +123,7 @@ POSIX.1-2001.
 Scheduling parameters are in fact per-thread
 attributes on Linux;
 see
-.BR sched_setscheduler (2).
+.BR sched (7).
 .SH SEE ALSO
 .ad l
 .nh
@@ -126,16 +135,16 @@ see
 .BR sched_getscheduler (2),
 .BR sched_setaffinity (2),
 .BR sched_setscheduler (2),
+.BR sched_setattr (2),
 .BR setpriority (2),
-.BR capabilities (7)
-.PP
-.I Programming for the real world \- POSIX.4
-by Bill O. Gallmeister, O'Reilly & Associates, Inc., ISBN 1-56592-074-0.
+.BR capabilities (7),
+.BR sched (7)
 .SH COLOPHON
-This page is part of release 3.65 of the Linux
+This page is part of release 3.79 of the Linux
 .I man-pages
 project.
 A description of the project,
-and information about reporting bugs,
+information about reporting bugs,
+and the latest version of this page,
 can be found at
 \%http://www.kernel.org/doc/man\-pages/.