cpuset_lock(9)
π cpuset_lock(9) β from the Kernel API Manual, bestie
okay so picture this: it's giving kernel internals, it's giving cgroups, and it's giving one very specific little helper. welcome to cpuset_lock(9). this is the manual page, and yes we're gonna read it together, hand in hand π«Ά
β¨ NAME β¨
cpuset_lock β literally just acquires the global cpuset mutex. that's the whole gig. iconic, honestly π
πΈ SYNOPSIS πΈ
void cpuset_lock (void );
no cap, that's it. look at her go π
π ARGUMENTS π
voidβ no arguments. zero. nada. she takes nothing and she givesβ¦ well, a lock π
π¦ DESCRIPTION π¦
so what this does is it locks the global cpuset mutex, which is the thing keeping anybody from messing with the cpuset hierarchy and its configurations while you're in there. think of it as the "occupied!! πͺ" sign on the door.
β οΈ but bestie, listen β this helper is not enough to make modification. like, the lock alone does not a modification make. that's the whole caveat, don't skip it π
π₯ SEE ALSO π₯
buckle up, the friend group is LARGE. all of these live in the kernel file ./kernel/cgroup/cpuset.c:
cpuset_full_lock(9)partition_is_populated(9)alloc_cpumasks(9)alloc_tmpmasks(9)free_tmpmasks(9)dup_or_alloc_cpuset(9)free_cpuset(9)cpus_excl_conflict(9)cpuset_update_tasks_cpumask(9)compute_effective_cpumask(9)compute_effective_nodemask(9)rm_siblings_excl_cpus(9)update_parent_effective_cpumask(9)compute_partition_effective_cpumask(9)update_sibling_cpumasks(9)validate_partition(9)partition_cpus_change(9)update_cpumask(9)update_exclusive_cpumask(9)cpuset_update_tasks_nodemask(9)update_prstate(9)cpuset_css_alloc(9)cpuset_init(9)cpuset_hotplug_update_tasks(9)cpuset_handle_hotplug(9)cpuset_init_smp(9)cpuset_cpus_allowed_locked(9)cpuset_cpus_allowed(9)cpuset_cpus_allowed_fallback(9)cpuset_mems_allowed(9)cpuset_nodemask_valid_mems_allowed(9)cpuset_nodes_allowed(9)cpuset_spread_node(9)cpuset_mem_spread_node(9)cpuset_mems_allowed_intersects(9)cpuset_print_current_mems_allowed(9)
and that's the whole page, bestie. go forth and lock responsibly π
this little love letter came to you from ./kernel/cgroup, dated October 2026 β the Kernel API Manual era, a true moment in history β¨π
π¦ 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