validate_partition(9)
π 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:
cpuset_lock(9)cpuset_full_lock(9)partition_is_populated(9)alloc_cpumasks(9)alloc_tmpmasks(9)free_tmpmasks(9)dup_or_alloc_cpuset(9)free_cpuset(9)cpus_excl_conflict(9)cpuset_update_tasks_cpumask(9)compute_effective_cpumask(9)compute_effective_nodemask(9)rm_siblings_excl_cpus(9)update_parent_effective_cpumask(9)compute_partition_effective_cpumask(9)update_sibling_cpumasks(9)partition_cpus_change(9)update_cpumask(9)update_exclusive_cpumask(9)cpuset_update_tasks_nodemask(9)update_prstate(9)cpuset_css_alloc(9)cpuset_init(9)cpuset_hotplug_update_tasks(9)cpuset_handle_hotplug(9)cpuset_init_smp(9)cpuset_cpus_allowed_locked(9)cpuset_cpus_allowed(9)cpuset_cpus_allowed_fallback(9)cpuset_mems_allowed(9)cpuset_nodemask_valid_mems_allowed(9)cpuset_nodes_allowed(9)cpuset_spread_node(9)cpuset_mem_spread_node(9)cpuset_mems_allowed_intersects(9)cpuset_print_current_mems_allowed(9)
kisses from the ./kernel/cgroup girlies β October 2026 π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms