memory_failure_pfn(9)
π memory_failure_pfn (9) β Kernel API Manual π
okay so bestie, welcome to the memory_failure_pfn(9) page, brought to you by the Kernel API Manual β¨ this one is all about handling a memory failure on a page that's not backed by struct page β yes, that's the whole vibe, and honestly it's giving niche-but-important π
πΈ NAME πΈ
memory_failure_pfn β Handle memory failure on a page not backed by struct page.
like literally, a page with no struct page backing it. that's the assignment. slay π
β¨ SYNOPSIS β¨
int memory_failure_pfn (unsigned long pfn , int flags );
two arguments, one int coming back at you. no cap, that's it π¦
π«Ά ARGUMENTS π«Ά
pfnβ Page Number of the corrupted page. yep, the Page Number of the page that's gone bad π that's the one we're here about.flagsβ fine tune action taken. it literally fine-tunes the action, bestie β that's the whole job π₯
π RETURN π
0β success π everything's fine, we ate.-EBUSYβ Page PFN does not belong to any address space mapping. π so the Page PFN isn't mapped to any address space, and the call just can't do its thing. not a vibe, but at least you know why.
ngl the original lays these two out in one squished line, so here they are un-squished for your reading pleasure β the facts are exactly the same, promise π«Ά
π SEE ALSO π
go read these next, iykyk β¨
- Kernel file
./mm/memory-failure.c MF_ATTR_RO(9)get_hwpoison_page(9)mf_dax_kill_procs(9)memory_failure(9)memory_failure_queue(9)unpoison_memory(9)soft_offline_page(9)
aaaand that's the whole page, bestie π§π this icon lives in ./mm and the manual's dated October 2026 β so go forth, handle those failures, and remember: page not backed by struct page? now you know exactly who to call πβ¨ periodt.
π¦ 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