mtrr_type_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mtrr_type_lookup(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so welcome to the Kernel API Manual entry for mtrr_type_lookup β€” yes that's the <italic>mtrr_type_lookup(9)</italic> girlies know her πŸ’– this is lowkey the moment where we go look up a memory type in MTRR, and honestly? iconic.


✨ NAME ✨

mtrr_type_lookup β€” look up memory type in MTRR πŸ”βœ¨


🌸 SYNOPSIS 🌸

u8 mtrr_type_lookup (u64 start , u64 end , u8 *uniform );

that's the whole vibe. three args, one u8 return, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • start β€” Begin of the physical address range πŸ“ like where the whole thing kicks off
  • end β€” End of the physical address range 🏁 the finish line, bestie
  • uniform β€” output argument, so she gives you something back πŸ‘‘:
    • 1: the returned MTRR type is valid for the whole region βœ… the entire range, all of it, periodt
    • 0: otherwise πŸ™ˆ like, not the whole region, so don't get too comfortable
    • (and yeah, these two bullets are literally nested under uniform in the original because that's just how she is πŸ’…)

⭐ DESCRIPTION ⭐

here's the Return Values tea, and it's giving very clear 🌈:

  • MTRR_TYPE_(type) β€” the effective MTRR type for the region πŸ”₯ that's your answer
  • MTRR_TYPE_INVALID β€” MTRR is disabled πŸ’€ that's your "sorry babe, nothing here" answer

that's it, that's the description. short and stunning, we love a main character energy section that doesn't overstay its welcome 🧚


πŸ’œ SEE ALSO πŸ’œ

like a little friend group of functions, all linked together 🫢 go say hi to all of them fr fr


lowkey reminder: uniform is an output argument, so don't go passing garbage and expecting magic β€” she writes back to it πŸ‘€

okay that's the page πŸ“!! huge thanks to the source dir ./arch/x86/kernel/cpu/mtrr and the October 2026 date stamp for making this little manual moment happen β€” version and date both said with love, mwah πŸ’–βœ¨ this has been mtrr_type_lookup(9), slay and goodbye πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from