panic_smp_redirect_cpu(9)
π panic_smp_redirect_cpu(9) β the kernel API manual, bestie edition β¨
okay so this is a page from the Kernel API Manual (panic_smp_redirect_cpu(9), iykyk) and honestly? it's short, it's iconic, let's get into it π«Ά
π NAME π
panic_smp_redirect_cpu β literally redirects a panic to a target CPU πΈ
β¨ SYNOPSIS β¨
int panic_smp_redirect_cpu (int target_cpu , void *msg );
that's the whole signature, no cap. two args, one int coming back at you π«
π¦ ARGUMENTS π¦
target_cpuβ the CPU that should handle the panic π like, this is the main character that gets to deal with itmsgβ the formatted panic message π₯² the whole dramatic text of it
π DESCRIPTION π
so the default implementation uses IPI. that's the vibe it ships with, periodt.
but listen β architectures with NMI support can override this for more reliable delivery π₯ (yes, "more reliable" is doing a lot of heavy lifting there, and we respect it)
π RETURN π
0on success β¨ slay- negative
errnoon failure π it's giving "went wrong"
π SEE ALSO π
- Kernel file
./kernel/panic.c panic_try_force_cpu(9)vpanic(9)print_tainted(9)print_tainted_verbose(9)add_taint(9)
go read those too, fr fr π
ngl this page is tiny but it's still important β remember the default is IPI, and the NMI override is the glow-up some architectures get π
β ok bye bestie, this page lived in ./kernel and was dated October 2026 β that's the source and the date, mentioned cute-style, and we're done here ππ
π¦ 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