Expand description
Allocation flags.
These are meant to be used in functions that can allocate memory.
Constantsยง
- GFP_
ATOMIC - Users can not sleep and need the allocation to succeed.
- GFP_
KERNEL - Typical for kernel-internal allocations. The caller requires ZONE_NORMAL or a lower zone for direct access but can direct reclaim.
- GFP_
KERNEL_ ACCOUNT - The same as
GFP_KERNEL
, except the allocation is accounted to kmemcg. - GFP_
NOWAIT - For kernel allocations that should not stall for direct reclaim, start physical IO or use any filesystem callback. It is very likely to fail to allocate memory, even for very small allocations.
- __
GFP_ HIGHMEM - Allow the allocation to be in high memory.
- __
GFP_ NOWARN - Suppresses allocation failure reports.
- __
GFP_ ZERO - Zeroes out the allocated memory.