memalloc_nofs_restore(9)
π NAME π
Okay so bestie, this is memalloc_nofs_restore(9) from the Kernel API Manual β the function that ends the implicit GFP_NOFS scope. π
β¨ SYNOPSIS β¨
void memalloc_nofs_restore (unsigned int flags );
π ARGUMENTS π
flagsβ Flags to restore. That's the whole vibe. π«Ά
π¦ DESCRIPTION π¦
So memalloc_nofs_restore ends the implicit GFP_NOFS scope started by the memalloc_nofs_save function. β¨
And like, always make sure that the given flags is the return value from the pairing memalloc_nofs_save call. Not a random value, not a guess β the actual matching return value. π
π SEE ALSO π
Kernel file: ./include/linux/sched/mm.h
mmgrab(9)mmget(9)might_alloc(9)memalloc_flags_save(9)memalloc_noio_save(9)memalloc_noio_restore(9)memalloc_nofs_save(9)memalloc_noreclaim_save(9)memalloc_noreclaim_restore(9)memalloc_pin_save(9)memalloc_pin_restore(9)set_active_memcg(9)
Okay that's the whole page, bestie. Cute sign-off: from the source spot ./include/linux/sched, dated October 2026, and it's all about memalloc_nofs_restore(9). ππ
π¦ 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