cpu_device_down(9)
π cpu_device_down(9)
okay so bestie, welcome to the cpu_device_down page β that's section 9 of the Kernel API Manual, and yes we're getting into the cpu-hotplug lore πΈ
β¨ NAME β¨
cpu_device_down β bring down a cpu device π«Ά
like... we're taking a cpu offline. that's the whole vibe.
β¨ SYNOPSIS β¨
int cpu_device_down (struct device *dev );
β¨ ARGUMENTS β¨
devβ pointer to the cpu device you wanna offline π this is the one that's catching strays.
β¨ DESCRIPTION β¨
okay so real talk: this function is meant to be used by the device core cpu subsystem only. like, it's their function, it's giving main character energy, and they're not sharing π
Other subsystems should use remove_cpu instead. no cap β if you're not the device core cpu subsystem, that's your function, go use it, i'm literally begging π
β¨ RETURN β¨
0 on success π or a negative errno code π (iykyk, the classic "it worked or it very much didn't" binary).
β¨ SEE ALSO β¨
Kernel file ./kernel/cpu.c β go read it, it's iconic β
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)notify_cpu_starting(9)cpu_device_up(9)bringup_hibernate_cpu(9)__cpuhp_setup_state_cpuslocked(9)__cpuhp_remove_state_cpuslocked(9)
and that's the page!! π¦ mwah π
source: ./kernel β dated October 2026 π signing off, love u bestie, go offline that cpu responsibly π
π¦ 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