imr_write(9)
π imr_write(9) π
okay so welcome to the imr_write(9) page from the Kernel API Manual, bestie β it's giving kernel-internals main character energy, and we're gonna get through it together. π
β¨
π NAME π
imr_write β write an IMR at a given index. π«Ά
πΈ SYNOPSIS πΈ
int imr_write (struct imr_device *idev , u32 imr_id , struct imr_regs *imr );
π¦ ARGUMENTS π¦
idevβ pointer toimr_devicestructure. πimr_idβ IMR entry to write. β¨imrβ IMR structure representing address and access masks. π
β¨ DESCRIPTION β¨
Requires caller to hold imr mutex. π no cap, you gotta bring the lock.
Note lock bits need to be written independently of address bits. π§ lowkey important, so don't smoosh them together.
π RETURN π
0 on success or error code passed from mbi_iosf on failure. π
π SEE ALSO π
- Kernel file
./arch/x86/platform/intel-quark/imr.c imr_is_enabled(9)imr_read(9)imr_dbgfs_state_show(9)imr_debugfs_register(9)imr_check_params(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)
mwah π this whole page lives under ./arch/x86/platform/intel-quark and is dated October 2026 β that's the source/version-and-date sign-off, periodt. π¦π
π¦ 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