HomeFreeBSD

LinuxKPI: add default_gfp()

Description

LinuxKPI: add default_gfp()

Various new allocation macros can take an optional gfp_t argument.
If the argument is not given we need to set the GFP_KERNEL default.
While this is only internally used and I initialy called it differently,
should this spread elsewhere having the same name as in Linux will be
good.

Sponsored by: The FreeBSD Foundaton
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D56392

Details

Provenance
bzAuthored on Apr 14 2026, 1:40 PM
Reviewer
dumbbell
Differential Revision
D56392: LinuxKPI: add default_gfp()
Parents
rG98297ff3cfbb: LinuxKPI: move hex2bin() from kernel.h to new hex.h
Branches
Unknown
Tags
Unknown