From 0fdbc1eb4a5c016543c000ca6abbf5a8fe027f5e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 28 Jul 2005 14:36:53 +0000 Subject: [PATCH] Modified discussion of privileges; added pointer to sched_setscheduler.2 for a discussion of privilegs and resource limits. --- man2/sched_setparam.2 | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/man2/sched_setparam.2 b/man2/sched_setparam.2 index 6a9eab2d2..adda4b099 100644 --- a/man2/sched_setparam.2 +++ b/man2/sched_setparam.2 @@ -28,7 +28,7 @@ .\" revision .\" Modified 2004-05-27 by Michael Kerrisk .\" -.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.