setup_local_APIC(9)
π setup_local_APIC(9) β Kernel API Manual β¨
okay bestie, so this is a page from the Kernel API Manual, and it's literally the glow-up guide for your local APIC. no cap, it's short but it's iconic. π
πΈ NAME πΈ
setup_local_APIC β get that local APIC all set up and cute π
β SYNOPSIS β
void setup_local_APIC (void );
π¦ ARGUMENTS π¦
voidβ no arguments, bestie. none. zero. it takes nothing and it slays anyway π
π DESCRIPTION π
So here's the vibe: this is the function you call to set up the local APIC β both while you're initializing the BSP and while you're bringing up APs. two jobs, one function, main character energy fr fr π
π¨ important caveat, do not skip this: it is always called with preemption disabled. like, always. that's the rule. periodt.
π SEE ALSO π
Kernel file ./arch/x86/kernel/apic/apic.c β and the whole squad of related functions, because nobody does it alone π«Ά
lapic_get_maxlvt(9)clear_local_APIC(9)apic_soft_disable(9)disable_local_APIC(9)sync_Arb_IDs(9)init_apic_mappings(9)spurious_interrupt(9)connect_bsp_APIC(9)disconnect_bsp_APIC(9)apic_bsp_setup(9)
anyway that's the whole page, you ate that π β¨
sign-off time: this little masterpiece lives in ./arch/x86/kernel/apic, dated October 2026, and it's setup_local_APIC(9) through and through. bye bestie, go set up some APICs π§π
π¦ 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