imr_remove_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… imr_remove_range πŸ’…

okay so bestie, quick vibe check: this page is imr_remove_range(9) from the Kernel API Manual, and it's literally the "yeet an Isolated Memory Region by its address" function. Let's get into it πŸŽ€


✨ NAME ✨

imr_remove_range β€” delete an Isolated Memory Region by address πŸ—‘οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

int imr_remove_range (phys_addr_t base , size_t size );

🌸 ARGUMENTS 🌸

  • base β€” the physical base address of the region, and heads up, it has to be aligned to 1 KiB. no cap, alignment is the whole vibe here πŸ”₯
  • size β€” the physical size of the region in bytes, also aligned to 1 KiB. yes bestie, also 1 KiB. they match, it's giving coordinated πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

So what does this icon actually do? It lets you delete an IMR by an address range, specified by base and size respectively. Like:

imr_remove_range(base, size); β€” deletes the IMR from base to base+size.

that's it, that's the whole main character moment 🫢 literally just: give it a start, give it a length, region goes bye ✨


⭐ RETURN ⭐

  • -EINVAL β€” on an invalid range, or an out of range id 😭 (yes, the original says "out or range id", we're keeping the energy)
  • -ENODEV β€” if reg is valid but no IMR exists, or if it's locked πŸ”’
  • 0 β€” on success, slay πŸ’–

🧚 SEE ALSO 🧚

Kernel file ./arch/x86/platform/intel-quark/imr.c β€” and honestly the whole friend group:


ok that's the whole page bestie, go forth and remove some ranges responsibly πŸ’œ

and that's a wrap 🌈 this whole thing lives at ./arch/x86/platform/intel-quark, dated October 2026 β€” mwah, bye πŸ“

πŸ“¦ where this page comes from