git: f18e56c17ae2 - stable/12 - pthread_setschedparam(3): document EPERM return
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Oct 2022 15:57:48 UTC
The branch stable/12 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=f18e56c17ae2cb6b190fe4cf53a3407201f9e3b0
commit f18e56c17ae2cb6b190fe4cf53a3407201f9e3b0
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2022-10-17 18:11:13 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2022-10-24 15:56:13 +0000
pthread_setschedparam(3): document EPERM return
In kern_sched_setparam(), before setting any parameters, p_cansched() is
called to check that the thread has appropriate privileges.
PR: 175687
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37020
(cherry picked from commit 04620006b9116049e9e2f27d74417d2d84dc8d10)
---
share/man/man3/pthread_schedparam.3 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/share/man/man3/pthread_schedparam.3 b/share/man/man3/pthread_schedparam.3
index 9d8b98a89d96..27ccb0de1ba9 100644
--- a/share/man/man3/pthread_schedparam.3
+++ b/share/man/man3/pthread_schedparam.3
@@ -27,7 +27,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 17, 2018
+.Dd October 17, 2022
.Dt PTHREAD_SCHEDPARAM 3
.Os
.Sh NAME
@@ -75,6 +75,8 @@ Invalid value for
.Fa policy .
.It Bq Er ENOTSUP
Invalid value for scheduling parameters.
+.It Bq Er EPERM
+The calling thread does not have sufficient privilege to perform the operation.
.It Bq Er ESRCH
Non-existent thread
.Fa thread .