dev_pm_opp_get_sharing_cpus(9)
π dev_pm_opp_get_sharing_cpus π
okay so this is a page from the Kernel API Manual, section 9, and bestie, it's literally the glow-up guide to finding out which CPUs are vibing on the same OPPs as your fave CPU device. no cap, it's giving "who's in my group chat" energy π«Ά
β¨ NAME β¨
dev_pm_opp_get_sharing_cpus β get the cpumask of all the CPUs that are sharing OPPs with @cpu_dev, periodt π
πΈ SYNOPSIS πΈ
int dev_pm_opp_get_sharing_cpus (struct device *cpu_dev , struct cpumask *cpumask );
like, that's the whole call, bestie β two pointers in, one int out π₯
π ARGUMENTS π
cpu_devβ the CPU device we're doing this whole operation for π it's the main character herecpumaskβ the cpumask that gets updated with the info about which CPUs are sharing, iykyk π
π¦ DESCRIPTION π¦
so what it does is: it updates that cpumask with the CPUs that share OPPs with cpu_dev. literally just fills it in with the squad π
and the returns? ok so listen:
- it returns
-ENODEVif the OPP table isn't already present π like, no table, no info - and it returns
-EINVALif the OPP table's status is access-unknown π
no shade, but if you're getting either of those, your OPP table is not passing the vibe check β check that it's actually there and that its status isn't access-unknown before you blame this function π
β SEE ALSO β
kernel file ./drivers/opp/cpu.c plus these iconic siblings:
dev_pm_opp_init_cpufreq_table(9)dev_pm_opp_free_cpufreq_table(9)dev_pm_opp_cpumask_remove_table(9)dev_pm_opp_set_sharing_cpus(9)
and that's the page, bestie π§ sign-off time: this lil masterpiece lives in ./drivers/opp, dated October 2026, and it's officially titled dev_pm_opp_get_sharing_cpus(9). slay πβ¨
π¦ 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