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)
Thu, Sep 10, 11:36 PM
Unknown Object (File)
Tue, Sep 8, 11:37 AM
Unknown Object (File)
Mon, Sep 7, 3:16 PM
Unknown Object (File)
Mon, Sep 7, 7:54 AM
Unknown Object (File)
Sun, Sep 6, 2:05 PM
Unknown Object (File)
Sun, Sep 6, 6:08 AM
Unknown Object (File)
Sun, Sep 6, 3:32 AM
Unknown Object (File)
Sat, Sep 5, 7:13 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

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