compute_effective_cpumask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… compute_effective_cpumask(9) πŸ’…

okay so bestie, we're in the Kernel API Manual and the main character is compute_effective_cpumask(9). it computes the effective cpumask of the cpuset. that's the vibe. ✨


🌸 NAME 🌸

compute_effective_cpumask β€” compute the effective cpumask of the cpuset. love that for us πŸ’–

✨ SYNOPSIS ✨

void compute_effective_cpumask (struct cpumask *new_cpus , struct cpuset
       *cs , struct cpuset *parent );

πŸŽ€ ARGUMENTS πŸŽ€

  • new_cpus β€” the temp variable for the new effective_cpus mask. it's giving scratch-space energy 🫢
  • cs β€” the cpuset the need to recompute the new effective_cpus mask. yes bestie, this one is getting recomputed πŸ’…
  • parent β€” the parent cpuset. the mothership, if you will πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so for v2, the parent's effective_cpus is inherited if the cpumask is empty. inheritance moment, honestly ✨

and the result is valid only if the given cpuset isn't a partition root.

🚨 caveat alert: the result is valid only if the given cpuset isn't a partition root. don't forget it, i'm begging 😭

🌈 SEE ALSO 🌈

Kernel file: ./kernel/cgroup/cpuset.c β€” it's right there, go look 🫢

then the whole icon crew, no skips:


πŸŽ€ cute sign-off πŸŽ€

that's the page, bestie! source is ./kernel/cgroup, the date is October 2026, and the page is compute_effective_cpumask(9). go slay your cpusets πŸ’…βœ¨

πŸ“¦ where this page comes from