memalloc_pin_restore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… memalloc_pin_restore(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a little function with one job and she does it flawlessly, no cap.


🌸 NAME 🌸

memalloc_pin_restore β€” ends the implicit ~__GFP_MOVABLE scope πŸŽ€


✨ SYNOPSIS ✨

void memalloc_pin_restore (unsigned int flags );

like, that's it. that's the whole signature. she's tidy πŸ’…


🫢 ARGUMENTS 🫢

  • flags β€” the flags you're restoring. that's literally the whole vibe: flags to restore πŸ”₯

πŸ’– DESCRIPTION πŸ’–

okay so, memalloc_pin_restore ends the implicit ~__GFP_MOVABLE scope that was started by the memalloc_pin_save function πŸ¦‹ yep, she's the closer. the one who turns the lights off after the party.

⚠️ bestie, listen: always make sure that the given flags is the return value from the pairing memalloc_pin_save call. like, the pairing one. not your cousin's. not some random number you found. the pairing one πŸ™ˆ fr fr. these two are a matched set, iykyk.

🌈 SEE ALSO 🌈

Kernel file ./include/linux/sched/mm.h and her whole friend group:


πŸ’€ and that's the whole page πŸ’€ sourced straight from ./include/linux/sched, dated October 2026, and signed off with a little memalloc_pin_restore(9) πŸŽ€ mwah, go restore those flags responsibly bestie 🫢✨

πŸ“¦ where this page comes from