free_tmpmasks(9)
πΈ free_tmpmasks(9) πΈ
okay so bestie, welcome to free_tmpmasks(9) β straight out of the Kernel API Manual, and honestly it's giving "small function, big cleanup energy" π
it lives in the cpuset corner of the kernel and it does exactly one thing, but it does it iconically.
β¨ NAME β¨
free_tmpmasks β frees the cpumasks inside a tmpmasks structure π§Ήβ¨
like, the masks were living in there rent-free, and this function is the eviction notice. periodt.
π¦ SYNOPSIS π¦
void free_tmpmasks (struct tmpmasks *tmp );
no cap, that's the whole signature π«Ά returns void, so don't go looking for a return value, there isn't one, she's not that kind of girl.
π ARGUMENTS π
tmpβ thetmpmasksstructure pointer π that's it, that's the argument. it's the pointer to thetmpmasksstructure you're handing over so its cpumasks can get freed.
lowkey the simplest argument list ever and we love her for it π
β οΈ heads up bestie: this frees the cpumasks in the structure. don't be out here passing garbage pointers, okay? π₯Ί iykyk.
π SEE ALSO π
so this function is part of the cpuset friend group living in the kernel file ./kernel/cgroup/cpuset.c, and here's the whole squad β every single one of them, no skips, no cuts π:
cpuset_lock(9)cpuset_full_lock(9)partition_is_populated(9)alloc_cpumasks(9)alloc_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)
all of them. every last one. i counted, and then i counted again because i'm thorough like that π
and that's the page, bestie π
this little icon came from the source tree ./kernel/cgroup, dated October 2026 β mwah, sending you the fluffiest kernel vibes, go free those masks responsibly π§π
π¦ 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