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.