memalloc_pin_restore(9)
π 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 givenflagsis the return value from the pairingmemalloc_pin_savecall. 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:
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_save(9)β the main character she's paired with πset_active_memcg(9)
π 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
- 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