unpoison_memory(9)
π NAME π
okay so welcome to the unpoison_memory(9) page in the Kernel API Manual, bestie β¨ This one is all about unpoison_memory β Unpoison a previously poisoned page π
β¨ SYNOPSIS β¨
int unpoison_memory (unsigned long pfn );
π¦ ARGUMENTS π¦
pfnβ Page number of the to be unpoisoned page. Like, which page are we un-poisoning? This is literally the page number, bestie π«Ά
π₯ DESCRIPTION π₯
Okay so unpoison_memory software-unpoisons a page that has been poisoned by memory_failure earlier. Itβs giving cleanup era β¨
This is only done on the software-level, so it only works for linux injected failures, not real hardware failures. Huge caveat, no cap: it will not fix actual hardware drama π
Returns 0 for success, otherwise -errno. Slay when itβs 0, and check that errno when itβs not π
π 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)memory_failure_queue(9)soft_offline_page(9)
source/version: ./mm β’ date: October 2026 β’ page: unpoison_memory(9) β byeee, go unpoison responsibly π
π¦ 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