update_prstate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to update_prstate(9) from the Kernel API Manual πŸ’– β€” this is the cpuset partition-root-state page, and we’re gonna read it like a group chat, but with all the facts intact ✨

🌸 NAME 🌸

  • update_prstate β€” update partition_root_state

πŸ¦‹ SYNOPSIS πŸ¦‹

int update_prstate (struct cpuset *cs , int new_prs );

πŸŽ€ ARGUMENTS πŸŽ€

  • cs β€” the cpuset to update, aka the main character cpuset getting the update πŸ’…
  • new_prs β€” the new partition root state, like the fresh state you’re setting ✨

πŸ’– RETURN πŸ’–

0 if successful, != 0 if error. That’s the whole vibe check: zero means slay, nonzero means something went sideways 😭

πŸ”₯ DESCRIPTION πŸ”₯

okay so the one big rule, no cap: call this with cpuset_mutex held πŸ”’. That’s literally the lock situation specified here, bestie.

🌈 SEE ALSO 🌈

the kernel file for this whole cpuset saga is ./kernel/cgroup/cpuset.c, and here’s the full bestie lineup, all of them, fr fr:


okay bye bestie β€” source/version ./kernel/cgroup, date October 2026, page update_prstate(9), mwah πŸ’‹

πŸ“¦ where this page comes from