memory_failure_queue(9)
π memory_failure_queue(9) π
okay bestie, welcome to the Kernel API Manual β yeah the title is a whole mouthful but stick with me, this one's actually kinda iconic. we're looking at memory_failure_queue(9) and fr fr it's the function that handles your RAM having a bad day. π«Ά
β¨ NAME β¨
memory_failure_queue β schedule handling memory failure of a page. that's the whole vibe: a page goes bad, and this queues up the cleanup. π
πΈ SYNOPSIS πΈ
void memory_failure_queue (unsigned long pfn , int flags );
look at her. returns void, takes two args, no notes. π
π¦ ARGUMENTS π¦
pfnβ the Page Number of the corrupted page. yes, the corrupted one. the problem child. πflagsβ flags for memory failure handling, i.e. the little knobs that tell it how to do the thing.
π₯ DESCRIPTION π₯
okay so here's the tea: this function gets called by the low level hardware error handler when it detects hardware memory corruption of a page. like, the hardware literally snitched on itself and this is who picks up the phone. π
what it does is schedules the recovering of error page β and that recovering package includes dropping pages, killing processes, etc. yeah. etc. she contains multitudes. π
the function is primarily of use for corruptions that happen outside the current execution context (e.g. when detected by a background scrubber), so it's the girl who handles the drama when you're not even in the room. β¨
and the best part? Can run in IRQ context. no cap, she's built different. π
π SEE ALSO π
- Kernel file
./mm/memory-failure.c MF_ATTR_RO(9)get_hwpoison_page(9)mf_dax_kill_procs(9)memory_failure_pfn(9)memory_failure(9)unpoison_memory(9)soft_offline_page(9)
all her besties, go read them too, iykyk ππ
and that's the page!! brought to you by the fine folks over at ./mm β source/version realness β dated October 2026, and yes she's still titled memory_failure_queue(9) because consistency is a slay. mwah, go fix that memory 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