cpuset_css_alloc(9)
π cpuset_css_alloc(9) β like, the Kernel API Manual one π
okay so bestie, welcome to the cpuset css allocation party β¨ this is a Kernel API Manual page, so buckle up, we're in kernel-land now π¦
β¨ NAME β¨
cpuset_css_alloc β allocate a cpuset css π«Ά (yes that's the whole name, she's lowkey self-explanatory and we love that for her)
πΈ SYNOPSIS πΈ
struct cgroup_subsys_state * cpuset_css_alloc (struct
cgroup_subsys_state *parent_css );
like, she takes one thing and hands you a struct cgroup_subsys_state * back, no cap π«
π ARGUMENTS π
parent_cssβ the parent css of the control group that the new cpuset is gonna be part of π§ so like, your new cpuset is joining that family, iykyk
π RETURN π
- the cpuset css on success π slay
-ENOMEMon failure π (out of memory, tragic, we've all been there)
π₯ DESCRIPTION π₯
so what she does is allocate and initialize a brand new cpuset css π
and here's the tea: for a non-NULL parent_css, you get that freshly allocated cpuset css. but if parent_css is NULL, she returns the top cpuset css instead π main character energy fr fr.
π SEE ALSO π
the whole friend group π«Ά, all hanging out in the kernel file ./kernel/cgroup/cpuset.c:
cpuset_lock(9)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_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 allocate responsibly. this one came from ./kernel/cgroup, dated October 2026 β mwah, see u in the next manpage ππ
π¦ 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