imr_clear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, this is imr_clear from the Kernel API Manual β€” it deletes an Isolated Memory Region by index. periodt πŸ’…


✨ SYNOPSIS ✨

int imr_clear (int reg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • reg β€” the imr index to remove. that's the whole vibe 🫢

🌸 DESCRIPTION 🌸

This function lets you delete an IMR by an address range specified by the index of the IMR. It’s useful for initial sanitization of the IMR address map. no cap, that’s the main-character job ✨

The page also literally drops this line:

imr_ge(base, size); delete IMR from base to base+size.

so yes, that’s the exact text β€” I’m not out here editing it, bestie 😭


πŸ’– RETURN πŸ’–

  • -EINVAL β€” on invalid range or out or range id
  • -ENODEV β€” if reg is valid but no IMR exists or is locked
  • 0 β€” on success

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./arch/x86/platform/intel-quark/imr.c


that’s the whole page, bestie 🫢 brought to you by source/version ./arch/x86/platform/intel-quark, dated October 2026 β€” iconic, honestly πŸŒˆπŸ’œ

πŸ“¦ where this page comes from