imr_raw_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… imr_raw_size(9) β€” like, the Kernel API Manual but make it make sense πŸŽ€

okay so bestie, we're in the <rainbow>Kernel API Manual</rainbow> today and the star of the show is imr_raw_size(9) β€” yes it's a section 9 page, yes it's kernel stuff, no you don't have to be scared. let's get into it ✨


🌸 NAME 🌸

imr_raw_size β€” literally just here to account for the IMR_ALIGN bytes that addr_hi appends. that's it. that's the whole job. she's a one-task icon πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

size_t imr_raw_size (size_t size );

πŸ’– ARGUMENTS πŸ’–

  • size β€” the input size, in bytes. just bytes. that's the unit. no cap 🫢

✨ DESCRIPTION ✨

so here's the tea β˜• β€” IMR's addr_hi has a built-in offset of plus IMR_ALIGN (0x400) bytes from whatever value is sitting in the register. like, it just does. it's built in. main character behavior honestly πŸ’€

because of that, we need to subtract IMR_ALIGN bytes from the input sizes. as a result. that's the consequence. that's what we do. periodt 🌈


⭐ RETURN ⭐

the reduced size. that's it, that's the return value, she's smaller now and thriving πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

bestie the whole friend group is here, say hi πŸ‘‹ β€” kernel file ./arch/x86/platform/intel-quark/imr.c plus:


ngl this page is short but she ate. remember: IMR_ALIGN is 0x400, subtract it, done. iykyk πŸ’…

and that's the whole vibe, bestie 🧚 from ./arch/x86/platform/intel-quark, dated October 2026, signed off on imr_raw_size(9) β€” mwah, go read some more kernel pages, you're doing amazing πŸ“πŸ’–

πŸ“¦ where this page comes from