unpoison_memory(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈


source/version: ./mm β€’ date: October 2026 β€’ page: unpoison_memory(9) β€” byeee, go unpoison responsibly πŸ’œ

πŸ“¦ where this page comes from