imr_is_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– imr_is_enabled(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for imr_is_enabled(9) β€” this is your go-to vibe check for whether an IMR is enabled, and it is lowkey iconic 🫢✨

🌟 NAME 🌟

imr_is_enabled β€” true if an IMR is enabled, false otherwise. fr fr, that’s the whole name situation πŸ’…

✨ SYNOPSIS ✨

int imr_is_enabled (struct imr_regs *imr );

πŸŽ€ ARGUMENTS πŸŽ€

  • imr β€” pointer to IMR descriptor. yes bestie, it’s a pointer to the descriptor, keep it cute πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function figures out if an IMR is enabled based on the address range and the read/write mask. no cap πŸ”

An IMR that’s set with an address range set to zero and a read/write access mask set to all is considered to be disabled. An IMR in any other state β€” for example, set to zero but without read/write access all β€” is considered to be enabled. This definition of disabled is how firmware switches off an IMR, and it’s maintained in the kernel for consistency. periodt πŸ’–

🌸 RETURN 🌸

  • true if the IMR is enabled
  • false if it’s disabled

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ this page is signed off from ./arch/x86/platform/intel-quark, dated October 2026 β€” go be iconic with your IMR checks, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from