HomeFreeBSD

pthread_setschedparam(3): document EPERM return

Description

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)

Details

Provenance
mhorneAuthored on Oct 17 2022, 6:11 PM
Reviewer
markj
Differential Revision
D37020: pthread_setschedparam(3): document EPERM return
Parents
rGf177e00aefa4: kern_intr: Check for NULL event in intr_destroy()
Branches
Unknown
Tags
Unknown