rm_siblings_excl_cpus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rm_siblings_excl_cpus(9) β€” a kernel API manual moment

okay so bestie, welcome to section 9 of the kernel API manual, where we talk about rm_siblings_excl_cpus ✨ this one lives in the kernel internals and it's lowkey iconic if you're into cpusets πŸŽ€


🌸 NAME 🌸

rm_siblings_excl_cpus β€” the function that removes exclusive CPUs used by sibling cpusets πŸ’… like it literally goes "bestie those CPUs are taken, we're not sharing" and cleans them out of your mask 🧹✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int rm_siblings_excl_cpus (struct cpuset *parent , struct cpuset *cs ,
       struct cpumask *excpus );

that's the whole signature, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the parent cpuset, aka the one holding all the siblings πŸ‘‘ think of it as the group chat admin
  • cs β€” the current cpuset, and heads up: it gets skipped πŸ™ˆ we're not touching this one, it's main character energy
  • excpus β€” the exclusive effective CPU mask that we're gonna modify ✨ this is the thing getting edited, so watch it closely

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: this function makes absolutely sure that the excpus mask you handed it does not include any CPUs that are exclusively allocated to sibling cpusets 🚫πŸ”₯

the way it does this is it walks through all the siblings of cs under parent πŸšΆβ€β™€οΈ and removes their exclusive CPUs from excpus one by one πŸ’… so by the time it's done, no sibling's exclusive CPUs are still sitting in your mask. periodt 🌟


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” kernel file ./kernel/cgroup/cpuset.c and these legends πŸ‘‘:


okay that's the whole page bestie, go forth and cpuset responsibly πŸ«ΆπŸ’œ

this gem came from ./kernel/cgroup and it's dated October 2026, brought to you by the kernel API manual β€” mwah, slay, bye πŸ’‹βœ¨πŸ“

πŸ“¦ where this page comes from