cpuhp_state...s_cpuslocked(9)
π cpuhp_state...s_cpuslocked(9) π
okay bestie, so this is a page straight out of the Kernel API Manual (yes, that's the manual name, we're fancy now π) and it's about one very specific little CPU-hotplug function. it's giving "niche but important" energy. let's get into it π
β¨ NAME β¨
cpuhp_state_add_instance_nocalls_cpuslocked β adds an instance for a state without invoking the startup callback, and you gotta do it from a region where cpus_read_lock() is already held. no cap, that's the whole vibe π₯
π¦ SYNOPSIS π¦
int cpuhp_state_add_instance_nocalls_cpuslocked (enum cpuhp_state state
, struct hlist_node *node );
πΈ ARGUMENTS πΈ
stateβ the state you're installing this instance for, like picking which shelf it goes on π§nodeβ the node for this individual state. one node, one state, main character energy π
π DESCRIPTION π
so this one is literally the same as cpuhp_state_add_instance_nocalls β same behavior, same deal β except it must be invoked from within a region where cpus_read_lock is held. that's the entire difference, and it's not optional, it's a whole requirement π π
π SEE ALSO π
kernel file ./include/linux/cpuhotplug.h β that's where the good stuff lives, iykyk π
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_remove_state(9)cpuhp_remove_state_nocalls(9)cpuhp_remove_state_nocalls_cpuslocked(9)cpuhp_remove_multi_state(9)cpuhp_state_remove_instance(9)cpuhp_state_remove_instance_nocalls(9)
ngl bestie, that "must be invoked from within a cpus_read_lock held region" line is the one bit you cannot skip. respect the lock. periodt πβ¨
and that's a wrap, bestie!! π«Ά this little icon came to you from the ./include/linux directory, dated October 2026, and honestly? she ate. obsessed. bye 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