cpu_device_down(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐


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