Page MenuHomeFreeBSD

Pass malloc flags directly through kevent subroutines.
ClosedPublic

Authored by markj on Nov 23 2018, 9:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 16, 4:30 AM
Unknown Object (File)
Tue, Dec 9, 10:20 PM
Unknown Object (File)
Nov 30 2025, 9:53 PM
Unknown Object (File)
Nov 28 2025, 2:38 AM
Unknown Object (File)
Nov 21 2025, 4:44 AM
Unknown Object (File)
Nov 21 2025, 4:43 AM
Unknown Object (File)
Nov 21 2025, 4:42 AM
Unknown Object (File)
Nov 21 2025, 4:40 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