memalloc_pin_save(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

mwah πŸ’‹ β€” source/version + date check: ./include/linux/sched, October 2026, for memalloc_pin_save(9). Bye bestie! πŸ’œ

πŸ“¦ where this page comes from