validate_partition(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– validate_partition(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for validate_partition, and it is literally here to validate a cpuset partition configuration. no cap. πŸŽ€

✨ NAME ✨

validate_partition β€” validate a cpuset partition configuration. that's the whole gig, and it ate. πŸ’…

🌸 SYNOPSIS 🌸

enum prs_errcode validate_partition (struct cpuset *cs , struct cpuset *trialcs );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cs β€” the cpuset to validate. main character energy, but make it a cpuset. πŸ‘‘
  • trialcs β€” the trial cpuset containing proposed configuration changes. it's giving β€œwhat if we changed stuff” energy. ✨

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: if any validation check fails, the appropriate error code is set in the cpuset's prs_err field. that's the whole description, bestie β€” short and iconic. fr fr. 🫢

πŸ”₯ RETURN πŸ”₯

It returns a PRS error code: 0 if valid, non-zero error code if invalid. so 0 is the slay case, non-zero is the β€œnot today” case. periodt. πŸ’…

🌈 SEE ALSO 🌈

The kernel file in question is ./kernel/cgroup/cpuset.c, and these besties are all in the SEE ALSO squad:

kisses from the ./kernel/cgroup girlies β€” October 2026 πŸ’…βœ¨

πŸ“¦ where this page comes from