imr_check_params(9)
π 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 asphys_addr_t. This is the address part of the range being checked. πsizeβ the size of the intended IMR, typed assize_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 π¦
- Kernel file
./arch/x86/platform/intel-quark/imr.c imr_is_enabled(9)imr_read(9)imr_write(9)imr_dbgfs_state_show(9)imr_debugfs_register(9)imr_raw_size(9)imr_address_overlap(9)imr_add_range(9)__imr_remove_range(9)imr_remove_range(9)imr_clear(9)imr_fixup_memmap(9)imr_init(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms