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
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D56392

(cherry picked from commit 35b90c21f48056e85b70dbbe2209b6c3a4927315)

Details

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