Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Oct 2022 15:54:15 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4d31ad0a1f35 - stable/13 - pthread_setschedparam(3): document EPERM return
Message-ID:  <202210241554.29OFsFcB013571@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=4d31ad0a1f3539091268ea0f6934cc1a411b0468

commit 4d31ad0a1f3539091268ea0f6934cc1a411b0468
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:53:11 +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 .



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210241554.29OFsFcB013571>