dev_pm_opp_o...sharing_cpus(9)
π dev_pm_opp_of_get_sharing_cpus(9) β from the Kernel API Manual, bestie π
Okay so picture this: you're deep in the kernel, you've got a CPU device, and you need to know which other CPUs are lowkey sharing the same OPPs as it. That's this function. It's from the Kernel API Manual and it is, honestly, iconic. β¨
πΈ SYNOPSIS πΈ
int dev_pm_opp_of_get_sharing_cpus (struct device *cpu_dev , struct
cpumask *cpumask );
Like, that's the whole signature. Short, sweet, gets the job done. π«Ά
π¦ ARGUMENTS π¦
cpu_devβ the CPU device we're doing this whole operation for. The main character, fr. πcpumaskβ the cpumask that gets updated with the info about which CPUs are sharing. She's getting a glow-up. π
β DESCRIPTION β
So this function updates the cpumask with the CPUs that are sharing OPPs with cpu_dev. That's the vibe. That's the whole assignment. π―
And if operating-points-v2 isn't present for cpu_dev? It returns -ENOENT. Like, no bindings, no answer, sorry bestie. π
Ngl, that-ENOENTreturn is the one gotcha to keep in your head β nooperating-points-v2, no sharing info. Periodt. π
π SEE ALSO π
The kernel file lives at ./drivers/opp/of.c and honestly the whole friend group is here, go say hi:
dev_pm_opp_of_remove_table(9)_opp_add_static_v2(9)devm_pm_opp_of_add_table(9)dev_pm_opp_of_add_table(9)dev_pm_opp_of_add_table_indexed(9)devm_pm_opp_of_add_table_indexed(9)dev_pm_opp_of_cpumask_remove_table(9)dev_pm_opp_of_cpumask_add_table(9)of_get_required_opp_performance_state(9)dev_pm_opp_of_has_required_opp(9)dev_pm_opp_get_of_node(9)dev_pm_opp_calc_power(9)dev_pm_opp_of_register_em(9)
Okay that's the whole page, no notes. π§ Sourced straight from ./drivers/opp, dated October 2026 β mwah, catch you in the next manpage, bestie! ππ¦πΈ
π¦ 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