Page MenuHomeFreeBSD

ksched: correct return code for invalid priority
ClosedPublic

Authored by mhorne on Oct 17 2022, 5:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 4:45 PM
Unknown Object (File)
Fri, Oct 10, 4:45 PM
Unknown Object (File)
Fri, Oct 10, 4:45 PM
Unknown Object (File)
Fri, Oct 10, 11:15 AM
Unknown Object (File)
Sat, Oct 4, 8:45 AM
Unknown Object (File)
Fri, Sep 26, 5:13 AM
Unknown Object (File)
Jul 31 2025, 9:53 PM
Unknown Object (File)
Jul 5 2025, 5:59 AM
Subscribers

Details

Summary

By convention, EINVAL is returned when validating arguments, not EPERM.
This matches the documented behaviour of sched_setscheduler(3), and that
of SCHED_OTHER.

PR: 227735

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable