cpuhp_state_remove_instance(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpuhp_state_remove_instance πŸ’…

Okay bestie, this is a page from the Kernel API Manual β€” yes, that Kernel API Manual, the one with the hotplug lore β€” and today's main character is cpuhp_state_remove_instance. Buckle up πŸŽ€


✨ NAME ✨

cpuhp_state_remove_instance β€” literally removes a hotplug instance from a state and invokes the teardown callback. Two things. One function. Slay. πŸ’…


🌸 SYNOPSIS 🌸

int cpuhp_state_remove_instance (enum cpuhp_state state , struct
hlist_node *node );

Bestie it returns an int. That's the whole vibe check up top. πŸ¦‹


🧚 ARGUMENTS 🧚

  • state β€” the state you're yanking this instance out of. That's the one. The state from which the instance is removed. 🌈
  • node β€” the node for this individual state. Like, this specific instance's node, not a group thing. πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

So what it actually does: it removes the instance, and then it invokes the teardown callback on the online cpus which have already reached state. That's it. That's the whole deal, no cap. πŸ”₯

Fr fr: the callback only hits the online cpus that have already reached state β€” that detail is doing a lot of work, don't skip it πŸ‘‘

🌟 SEE ALSO 🌟

The whole friend group, honestly β€” kernel file ./include/linux/cpuhotplug.h plus:

Like, the entire cpuhotplug extended universe. Obsessed. πŸ’œ


Alright bestie, that's the page 🫢 β€” sourced from ./include/linux, dated October 2026, under the title cpuhp_state_remove_instance(9). Go forth and remove those instances, icon behavior only πŸ‘‘βœ¨

πŸ“¦ where this page comes from