amd_set_mtrr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… amd_set_mtrr(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this is the page for amd_set_mtrr(9), and it is literally about setting a variable MTRR register on the local CPU. iconic little kernel-function energy, no cap 🫢


🌸 NAME 🌸

amd_set_mtrr β€” Set variable MTRR register on the local CPU.

✨ SYNOPSIS ✨

void amd_set_mtrr (unsigned int reg , unsigned long base , unsigned long
       size , mtrr_type type );

πŸŽ€ ARGUMENTS πŸŽ€

  • reg β€” -- undescribed -- πŸ™ˆ the manpage says it, not me!
  • base β€” -- undescribed -- πŸ’€
  • size β€” -- undescribed -- 😭
  • type β€” -- undescribed -- 🫠

πŸ’– DESCRIPTION πŸ’–

okay so here's the actual tea, bestie: reg is the register to set. base is the base address of the region. size is the size of the region β€” and if this is 0, the region is disabled. type is the type of the region. that's the whole rundown ✨

and yeah: it returns nothing. no return value, no little gift, just vibes πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./arch/x86/kernel/cpu/mtrr/amd.c πŸ‘€

mwah πŸ’‹ that's the whole page, bestie. source/version is ./arch/x86/kernel/cpu/mtrr, dated October 2026 β€” slay and goodbye 🫢✨

πŸ“¦ where this page comes from