memalloc_noreclaim_restore(9)
π 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 theflagsyou pass in is the return value from the pairingmemalloc_noreclaim_savecall. 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:
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_pin_save(9)memalloc_pin_restore(9)set_active_memcg(9)
xoxo, signing off from the ./include/linux/sched source/version spot, dated October 2026 β mwah ππ
π¦ 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