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)
Thu, May 14, 6:09 PM
Unknown Object (File)
Thu, May 7, 12:16 AM
Unknown Object (File)
Wed, May 6, 9:18 AM
Unknown Object (File)
Wed, May 6, 8:32 AM
Unknown Object (File)
Wed, May 6, 3:44 AM
Unknown Object (File)
Sat, May 2, 10:31 PM
Unknown Object (File)
Mon, Apr 27, 12:58 PM
Unknown Object (File)
Sat, Apr 25, 9:42 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