mirror of https://github.com/mkerrisk/man-pages
Modified discussion of privileges; added pointer to sched_setscheduler.2 for a discussion of privilegs and resource limits.
This commit is contained in:
parent
4c11163972
commit
0fdbc1eb4a
|
@ -28,7 +28,7 @@
|
||||||
.\" revision
|
.\" revision
|
||||||
.\" Modified 2004-05-27 by Michael Kerrisk <mtk-manpages@gmx.net>
|
.\" 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
|
.SH NAME
|
||||||
sched_setparam, sched_getparam \- set and get scheduling parameters
|
sched_setparam, sched_getparam \- set and get scheduling parameters
|
||||||
.SH SYNOPSIS
|
.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
|
range given by \fBsched_get_priority_min\fR and
|
||||||
\fBsched_get_priority_max\fR.
|
\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
|
POSIX systems on which
|
||||||
.B sched_setparam
|
.B sched_setparam
|
||||||
and
|
and
|
||||||
|
@ -94,15 +98,10 @@ The parameter \fIp\fR does not make sense for the current
|
||||||
scheduling policy.
|
scheduling policy.
|
||||||
.TP
|
.TP
|
||||||
.B EPERM
|
.B EPERM
|
||||||
The calling process does not have appropriate privileges.
|
The calling process does not have appropriate privileges
|
||||||
A process calling
|
(Linux: does not have the
|
||||||
.BR sched_setparam
|
.B CAP_SYS_NICE
|
||||||
needs an effective user ID equal to the user ID or effective user ID
|
capability).
|
||||||
of the process identified by
|
|
||||||
.IR pid ,
|
|
||||||
or (Linux) it must have the
|
|
||||||
CAP_SYS_NICE
|
|
||||||
capability.
|
|
||||||
.TP
|
.TP
|
||||||
.B ESRCH
|
.B ESRCH
|
||||||
The process whose ID is \fIpid\fR could not be found.
|
The process whose ID is \fIpid\fR could not be found.
|
||||||
|
|
Loading…
Reference in New Issue