generic_set_mtrr(9)
π NAME π
generic_set_mtrr β set variable MTRR register on the local CPU.
okay so bestie, this page comes straight from the Kernel API Manual, and it's literally all about generic_set_mtrr(9). no cap π«Ά
β¨ SYNOPSIS β¨
void generic_set_mtrr (unsigned int reg , unsigned long base , unsigned long size , mtrr_type type );
that's the whole signature, bestie β copy it exactly, spaces before the commas and all π
π ARGUMENTS π
four args, let's go one by one β¨
regβ the register to set.baseβ the base address of the region.sizeβ the size of the region. If this is0the region is disabled.typeβ the type of the region.
πΈ DESCRIPTION πΈ
okay so the description is short and iconic: this function returns nothing.
no return value, no little gift back, nada. it's giving void energy πβ¨
π¦ SEE ALSO π¦
if ur nosy (same), go peek at these π
- Kernel file
./arch/x86/kernel/cpu/mtrr/generic.c guest_force_mtrr_state(9)mtrr_type_lookup(9)set_fixed_range(9)generic_get_free_region(9)set_fixed_ranges(9)set_mtrr_state(9)
k bye bestie π shoutout to the source/version ./arch/x86/kernel/cpu/mtrr, dated October 2026 β slay π
π¦ 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