summaryrefslogtreecommitdiff
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2005-07-28 14:36:53 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2005-07-28 14:36:53 +0000
commit0fdbc1eb4a5c016543c000ca6abbf5a8fe027f5e (patch)
treed108926a90d4b5984fbf461e948bb38d0877ed0e /man2
parent4c11163972ad532db19ca7cd8e3f8b3ee4b05014 (diff)
Modified discussion of privileges; added pointer to sched_setscheduler.2 for a discussion of privilegs and resource limits.
Diffstat (limited to 'man2')
-rw-r--r--man2/sched_setparam.219
1 files changed, 9 insertions, 10 deletions
diff --git a/man2/sched_setparam.2 b/man2/sched_setparam.2
index 6a9eab2d..adda4b09 100644
--- a/man2/sched_setparam.2
+++ b/man2/sched_setparam.2
@@ -28,7 +28,7 @@
.\" revision
.\" Modified 2004-05-27 by Michael Kerrisk <mtk-manpages@gmx.net>
.\"
-.TH SCHED_SETPARAM 2 2004-05-27 "Linux 2.6.6" "Linux Programmer's Manual"
+.TH SCHED_SETPARAM 2 2005-07-28 "Linux 2.6.12" "Linux Programmer's Manual"
.SH NAME
sched_setparam, sched_getparam \- set and get scheduling parameters
.SH SYNOPSIS
@@ -70,6 +70,10 @@ process. The parameter \fIp->sched_priority\fR must lie within the
range given by \fBsched_get_priority_min\fR and
\fBsched_get_priority_max\fR.
+For a discussion of the privileges and resource limits related to
+scheduling priority and policy, see
+.BR sched_setscheduler (2).
+
POSIX systems on which
.B sched_setparam
and
@@ -94,15 +98,10 @@ The parameter \fIp\fR does not make sense for the current
scheduling policy.
.TP
.B EPERM
-The calling process does not have appropriate privileges.
-A process calling
-.BR sched_setparam
-needs an effective user ID equal to the user ID or effective user ID
-of the process identified by
-.IR pid ,
-or (Linux) it must have the
-CAP_SYS_NICE
-capability.
+The calling process does not have appropriate privileges
+(Linux: does not have the
+.B CAP_SYS_NICE
+capability).
.TP
.B ESRCH
The process whose ID is \fIpid\fR could not be found.