__remove_memory(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, meet __remove_memory(9) from the Kernel API Manual β€” its whole mission is: remove memory if every memory block is offline. That's the vibe. No cap. πŸ’…


✨ SYNOPSIS ✨

void __remove_memory (u64 start , u64 size );

🫢 ARGUMENTS 🫢

  • start β€” physical address of the region to remove. Like, where the memory situation starts. πŸ“
  • size β€” size of the region to remove. The amount of memory we're talking about, bestie. πŸ“

⚠️ NOTE ⚠️

Before this call, the caller must call lock_device_hotplug so that hotplug and online/offline operations are serialized. This is required by try_offline_node, so don't skip it β€” it's giving "mandatory pre-game ritual." 🚨

Real talk: that serialization requirement is not decorative; it's literally required by try_offline_node.

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./mm/memory_hotplug.c, plus these besties:


From ./mm, the October 2026 version/date drop, page __remove_memory(9) β€” bye bestie, hydrate and serialize your hotplug ops! πŸ’–βœ¨

πŸ“¦ where this page comes from