nmi_shootdown_cpus(9)
π NAME π
okay so bestie, welcome to the nmi_shootdown_cpus(9) page from the Kernel API Manual β the whole main-character mission is literally: Stop other CPUs via NMI. Thatβs it, thatβs the vibe. No cap. β¨
π SYNOPSIS π
void nmi_shootdown_cpus (nmi_shootdown_cb callback );
π¦ ARGUMENTS π¦
callbackβ optional callback to be invoked from the NMI handler. If youβre passing one, this is the callback that gets invoked from the NMI handler; itβs optional, iykyk. π«Ά
π DESCRIPTION π
So hereβs the lore, fr fr: the NMI handler on the remote CPUs invokes callback, if itβs not NULL, first β like, callback gets the first turn. Then it disables virtualization to ensure that INIT is recognized during reboot. Thatβs the sequence: callback first when itβs not NULL, then virtualization goes off, all so INIT is recognized during reboot. Slay. πΈ
β οΈ one-shot alert, bestie:nmi_shootdown_cpuscan only be invoked once. After the first invocation, all other CPUs are stuck incrash_nmi_callbackand cannot respond to a second NMI. No round two, no double-dip, periodt. ππ
π SEE ALSO π
- Kernel file
./arch/x86/kernel/reboot.c
π xoxo, from the ./arch/x86/kernel source/version, dated October 2026 β your manual bestie nmi_shootdown_cpus(9) πβ¨
π¦ 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