panic_smp_redirect_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 it
  • msg β€” 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 🌈

  • 0 on success ✨ slay
  • negative errno on failure 😭 it's giving "went wrong"

πŸ‘‘ SEE ALSO πŸ‘‘

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