mtrr_bp_init(9)
π mtrr_bp_init β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual page for mtrr_bp_init(9) β yes that's the manual name, and yes we are doing this, because this tiny little function is lowkey carrying the whole boot process on its back π«Ά
β¨ NAME β¨
mtrr_bp_init β initialize MTRRs on the boot CPU π
πΈ SYNOPSIS πΈ
void mtrr_bp_init (void );
π ARGUMENTS π
voidβ no arguments. nada. zero. the function said "i don't need input, i am the input" π
π¦ DESCRIPTION π¦
so here's the tea β β this needs to be called early. like, early early. before any of the other CPUs are initialized, i.e. before smp_init. the way that this is genuinely a "me first, everyone else later" situation and honestly? main character energy π
no cap, if you're calling this late you're doing it wrong, and the vibes will be rancid π
π§ SEE ALSO π§
Kernel file ./arch/x86/kernel/cpu/mtrr/mtrr.c β go read it, it's giving lore β¨
mtrr_rendezvous_handler(9)set_mtrr(9)mtrr_add_page(9)mtrr_add(9)mtrr_del_page(9)mtrr_del(9)arch_phys_wc_add(9)mtrr_save_state(9)
all the MTRR besties in one group chat, we love a friend group π
periodt π call it early or don't call it at all, iykyk
and that's the page!! brought to you by the ./arch/x86/kernel/cpu/mtrr directory (the source/version bestie) and dated October 2026 β mwah, love u, go initialize those MTRRs ππ
π¦ 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