cpuset_mems_...d_intersects(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the task_struct of some task. just, y'know, a task. any task. one of them πŸ‘‘
  • tsk2 β€” a pointer to the task_struct of 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:


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