imr_check_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so this is imr_check_params(9) from the Kernel API Manual, and it's literally the vibe check for a passed address range: it checks IMR alignment and that the size is non-zero. Bestie, that's the whole assignment. 🫢

✨ SYNOPSIS ✨

int imr_check_params (phys_addr_t base , size_t size );

πŸŽ€ ARGUMENTS πŸŽ€

  • base β€” the base address of the intended IMR, typed as phys_addr_t. This is the address part of the range being checked. πŸ“
  • size β€” the size of the intended IMR, typed as size_t. It is supposed to be non-zero, bestie. πŸ“

🌸 RETURN 🌸

  • 0 β€” the range is valid, no cap. βœ…
  • -EINVAL β€” the base or size is unaligned. 🚩

So yes: zero on a valid range, and -EINVAL on an unaligned base/size. That's the whole mood. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


cute sign-off: this page's source/version is ./arch/x86/platform/intel-quark, dated October 2026, and the manual page is imr_check_params(9). byeee πŸ‘‹πŸ’œ

πŸ“¦ where this page comes from