cpuhp_remov...s_cpuslocked(9)
π cpuhp_remov...s_cpuslocked(9) β Kernel API Manual, bestie! π
okay so real talk, we're deep in the kernel hotplug docs rn and this one is β¨nicheβ¨ but it's giving main character energy for anyone doing CPU hotplug while already holding a lock. Let's get into it π«Ά
β¨ NAME β¨
cpuhp_remove_state_nocalls_cpuslocked β the one that yanks out hotplug state callbacks and doesn't invoke the teardown, and you're only allowed to call it from inside a region held by cpus_read_lock(). no cap, that's the whole vibe check π
πΈ SYNOPSIS πΈ
void cpuhp_remove_state_nocalls_cpuslocked (enum cpuhp_state state );
literally one arg, one return type, that's it. slay β¨
π¦ ARGUMENTS π¦
stateβ the state whose calls get removed. like, this is which hotplug state you're tearing down the callbacks for. iconic little enum π
π DESCRIPTION π
okay so it's the same as cpuhp_remove_state nocalls, bestie β literally the same deal β except you must invoke it from within a region held by cpus_read_lock(). that's the whole difference and the whole personality. "cpuslocked" in the name is not decorative, it's a promise, iykyk π₯
β οΈ lowkey important: if you're not inside a cpus_read_lock held region, this is not the function for you. the name is screaming it at you fr fr π
π SEE ALSO π
so there's a whole friend group here, and the kernel file ./include/linux/cpuhotplug.h is where they all hang out π
cpuhp_setup_state(9)cpuhp_setup_state_cpuslocked(9)cpuhp_setup_state_nocalls(9)cpuhp_setup_state_nocalls_cpuslocked(9)cpuhp_setup_state_multi(9)cpuhp_state_add_instance(9)cpuhp_state_add_instance_nocalls(9)cpuhp_state_add_instance_nocalls_cpuslocked(9)cpuhp_remove_state(9)cpuhp_remove_state_nocalls(9)cpuhp_remove_multi_state(9)cpuhp_state_remove_instance(9)cpuhp_state_remove_instance_nocalls(9)
plus the source lives at Kernel file ./include/linux/cpuhotplug.h β go read the header, it ate πβ¨
anyway that's the page, mwah π β this little drop came from ./include/linux, dated October 2026, and it's filed under cpuhp_remov...s_cpuslocked(9). go forth and hold that read lock responsibly bestie πΈπ¦π
π¦ 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