gfp_t(9)
okay so bestie, welcome to gfp_t(9) from the Kernel API Manual β this is the page about memory allocation flags, and it's lowkey iconic for doing so much with one little typedef. β¨π
πΈ NAME πΈ
typedef gfp_t β memory allocation flags, periodt. π
β¨ DESCRIPTION β¨
GFP flags are commonly used throughout Linux to indicate how memory should be allocated. That's the whole vibe: they're the little signals that tell the kernel what kind of memory situation it's in. π§β¨
The GFP acronym stands for get_free_pages, which is the underlying memory allocation function. No cap, that's literally what it means. π
Not every GFP flag is supported by every function which may allocate memory β so yeah, bestie, don't just assume every flag works everywhere. π
Most users will want to use a plain GFP_KERNEL β that's the main character move for most people. ππ
π SEE ALSO π
- Kernel file
./tools/include/linux/gfp_types.hποΈ - Page mobility and placement hints(9)
- Watermark modifiers(9)
- Reclaim modifiers(9)
- Action modifiers(9)
- Useful GFP flag combinations(9)
byeee π«Ά β source/version: ./tools/include/linux β¨ date: October 2026 π β manual: gfp_t(9) π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms