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)
Sat, Mar 7, 8:24 PM
Unknown Object (File)
Fri, Mar 6, 9:17 PM
Unknown Object (File)
Thu, Mar 5, 1:20 AM
Unknown Object (File)
Thu, Mar 5, 1:04 AM
Unknown Object (File)
Feb 8 2026, 12:03 PM
Unknown Object (File)
Jan 30 2026, 8:47 PM
Unknown Object (File)
Dec 16 2025, 4:30 AM
Unknown Object (File)
Dec 9 2025, 10:20 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable