notify_cpu_starting(9)
π 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:
struct cpuhp_cpu_state(9)struct cpuhp_step(9)cpuhp_invoke_callback(9)cpuhp_ap_update_sync_state(9)cpuhp_ap_report_dead(9)cpuhp_ap_sync_alive(9)clear_tasks_mm_cpumask(9)cpu_device_down(9)cpu_device_up(9)bringup_hibernate_cpu(9)__cpuhp_setup_state_cpuslocked(9)__cpuhp_remove_state_cpuslocked(9)
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
- 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