memalloc_noreclaim_restore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… memalloc_noreclaim_restore πŸ’…

okay bestie, welcome to the Kernel API Manual corner where we handle the cleanup era of memory allocation flags. This one is short, iconic, and very much a β€œput it back the way you found it” situation. ✨


πŸŽ€ NAME πŸŽ€

memalloc_noreclaim_restore β€” ends the implicit __GFP_MEMALLOC scope. periodt. πŸ’…


✨ SYNOPSIS ✨

void memalloc_noreclaim_restore (unsigned int flags );

🌸 ARGUMENTS 🌸

  • flags β€” the flags you’re restoring, bestie. That’s the whole assignment. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function ends the implicit __GFP_MEMALLOC scope that was started by the memalloc_noreclaim_save function. It’s literally the β€œwe’re done here, close the tab” of that pairing. 😌

⚠️ always β€” and I mean always β€” make sure the flags you pass in is the return value from the pairing memalloc_noreclaim_save call. no cap. that’s the whole vibe check. πŸ’€

🌈 SEE ALSO 🌈

the kernel file is ./include/linux/sched/mm.h, and the whole friend group is right here:


xoxo, signing off from the ./include/linux/sched source/version spot, dated October 2026 β€” mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from