notify_cpu_starting(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– notify_cpu_starting(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie 🫢 β€” today's main character is notify_cpu_starting(9), and she is literally the call that invokes the callbacks on the starting CPU. no cap. ✨


πŸŽ€ NAME πŸŽ€

notify_cpu_starting β€” Invoke the callbacks on the starting CPU. that's the whole vibe. iconic. πŸ’…

🌸 SYNOPSIS 🌸

void notify_cpu_starting (unsigned int cpu );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cpu β€” the cpu that just started. yep, that's the one. πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

okay so the rule is: it must be called by the arch code on the new cpu, and the timing is not a suggestion β€” it has to happen before the new cpu enables interrupts and before the "boot" cpu returns from __cpu_up. it's giving "last checkpoint before go-live" 😭. if you're the arch code, this is your moment β€” do not skip it, because the original says must. periodt. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the Kernel file ./kernel/cpu.c is where the lore lives, and the whole entourage is:


mwah πŸ’‹ signed off from the ./kernel source/version corner, dated October 2026, in the Kernel API Manual β€” notify_cpu_starting(9), out 🫢✨

πŸ“¦ where this page comes from