Page MenuHomeFreeBSD

Pass malloc flags directly through kevent subroutines.
ClosedPublic

Authored by markj on Nov 23 2018, 9:59 PM.
Tags
None
Referenced Files
F152647184: D18318.diff
Thu, Apr 16, 6:21 AM
F152639820: D18318.id51024.diff
Thu, Apr 16, 5:03 AM
Unknown Object (File)
Sun, Apr 5, 6:42 AM
Unknown Object (File)
Fri, Mar 27, 11:26 PM
Unknown Object (File)
Wed, Mar 18, 11:31 AM
Unknown Object (File)
Wed, Mar 18, 10:30 AM
Unknown Object (File)
Wed, Mar 18, 7:54 AM
Unknown Object (File)
Mar 18 2026, 2:09 AM
Subscribers

Details

Summary

Some kevent functions have a boolean "waitok" parameter to pass to
malloc(9). Replace them with the corresponding malloc() flags: this is
more clear and removes the need for conditional branches when
translating from a boolean flag to a malloc flag.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21183
Build 20538: arc lint + arc unit