memalloc_pin_save(9)
π NAME π
okay so this is memalloc_pin_save(9) from the Kernel API Manual, and it Marks implicit ~__GFP_MOVABLE scope. Lowkey a tiny scope marker with main character energy. π
πΈ SYNOPSIS πΈ
unsigned int memalloc_pin_save (void );
π¦ ARGUMENTS π¦
voidβ no arguments, bestie. Nothing to pass, no vibe check needed.
β¨ DESCRIPTION β¨
This function marks the beginning of the ~__GFP_MOVABLE allocation scope. All further allocations will implicitly remove the __GFP_MOVABLE flag β yes, automatically, no cap. That constrains those allocations to zones that allow long term pinning, i.e. not ZONE_MOVABLE zones. It's giving βplease stay pinnable, bestie.β π«Ά
π RETURN π
The saved flags to be passed to memalloc_pin_restore. Hold onto them, fr fr β they're literally the thing you hand back later. π
π SEE ALSO π
Kernel file ./include/linux/sched/mm.h β that's the spot. Then the whole little friend group:
mmgrab(9)mmget(9)might_alloc(9)memalloc_flags_save(9)memalloc_noio_save(9)memalloc_noio_restore(9)memalloc_nofs_save(9)memalloc_nofs_restore(9)memalloc_noreclaim_save(9)memalloc_noreclaim_restore(9)memalloc_pin_restore(9)set_active_memcg(9)
mwah π β source/version + date check: ./include/linux/sched, October 2026, for memalloc_pin_save(9). Bye bestie! π
π¦ 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