imr_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is imr_read(9) from the Kernel API Manual, and it does exactly what the name says: it will read an IMR at a given index. iconic. πŸ’…

✨ SYNOPSIS ✨

int imr_read (struct imr_device *idev , u32 imr_id , struct imr_regs
       *imr );

πŸŽ€ ARGUMENTS πŸŽ€

  • idev β€” pointer to the imr_device structure. literally the device context, bestie.
  • imr_id β€” the IMR entry to read. this is the one you're asking for. πŸ‘‘
  • imr β€” the IMR structure representing address and access masks. that's the structure involved here, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

This one requires the caller to hold the imr mutex. like, that's the whole vibe check: you gotta have that mutex held before you call it. not optional, bestie. πŸ”’

🌸 RETURN 🌸

Returns 0 on success, or an error code passed from mbi_iosf on failure. so if it's not 0, the failure tea came straight from mbi_iosf. 😭

🌈 SEE ALSO 🌈

Kernel file ./arch/x86/platform/intel-quark/imr.c β€” that's the source file, bestie. go peek at these too:


okay that's the whole page, periodt. 🫢 source/version tea: ./arch/x86/platform/intel-quark, dated October 2026 β€” imr_read(9) signing off, mwah. πŸ’–βœ¨

πŸ“¦ where this page comes from