cpuset_mems_...d_intersects(9)
π cpuset_mems_...d_intersects(9) π
okay bestie, so this page comes at you straight out of the Kernel API Manual, and the title it's filed under is literally cpuset_mems_...d_intersects(9) β yes, with the dots and everything, that's not a glitch, that's just how it's listed β¨
πΈ NAME πΈ
cpuset_mems_allowed_intersects β the little function that answers the question: does @tsk1's mems_allowed intersect @tsk2's? π«Ά
β¨ SYNOPSIS β¨
int cpuset_mems_allowed_intersects (const struct task_struct *tsk1 ,
const struct task_struct *tsk2 );
like, that's the whole signature, no cap π
π ARGUMENTS π
tsk1β a pointer to thetask_structof some task. just, y'know, a task. any task. one of them πtsk2β a pointer to thetask_structof some other task. the other one. the plus-one π¦
π DESCRIPTION π
So the whole vibe here: return true if tsk1's mems_allowed intersects the mems_allowed of tsk2. that's it, that's the function, and honestly? iconic π
Who's out here calling it? the OOM killer β yes, that one π β and it uses this to figure out whether one of the tasks' memory usage might impact the memory available to the other. literally a vibe check but for node masks π₯
π SEE ALSO π
the source lives in the kernel file ./kernel/cgroup/cpuset.c, and here's the whole cpuset crew, bestie β every single one of them, no skips:
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_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_print_current_mems_allowed(9)
ngl that's a lot of siblings, but they're all family, and family's family π
and that's a wrap, bestie π this page is filed under ./kernel/cgroup, dated October 2026, and it's the cpuset_mems_...d_intersects(9) entry in your Kernel API Manual β go forth and intersect those mems π
β¨π
π¦ 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