Modified discussion of privileges; added pointer to sched_setscheduler.2 for a discussion of privilegs and resource limits.

This commit is contained in:
Michael Kerrisk 2005-07-28 14:36:53 +00:00
parent 4c11163972
commit 0fdbc1eb4a
1 changed files with 9 additions and 10 deletions

View File

@ -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.