dev_pm_opp_set_sharing_cpus(9)
π dev_pm_opp_set_sharing_cpus(9) β Kernel API Manual, but make it make sense
okay bestie, welcome to the group chat that is the Linux kernel API docs π«Ά this one lives in the Kernel API Manual, and no cap, it's a tiny function that does one very specific little job. let's get into it β¨
β¨ NAME β¨
dev_pm_opp_set_sharing_cpus β mark an OPP table as shared by a few CPUs π
like, "hey kernel, this here OPP table? it's not just for one CPU, it's a whole friend-group situation." literally that's the whole gig π
πΈ SYNOPSIS πΈ
int dev_pm_opp_set_sharing_cpus (struct device *cpu_dev , const struct
cpumask *cpumask );
she takes two arguments and returns an int, that's it, that's the vibe π
π¦ ARGUMENTS π¦
cpu_devβ the CPU device we're doing this whole operation for π₯οΈ like, the main character of this call, nglcpumaskβ the cpumask of the CPUs that share the OPP table withcpu_devπ so it's the guest list of who else gets to be in this OPP table's inner circle
β DESCRIPTION β
so here's the tea β this function marks the OPP table of cpu_dev as shared by the CPUs present in cpumask. that's it, that's the whole description, she's short and iconic π
and now for the part you actually need to remember, bestie, because this is the plot twist π:
returns -ENODEV if the OPP table isn't already present. like, the OPP table has to exist first β you can't mark a vibe as shared if there's no vibe to share. fr fr.
π₯ SEE ALSO π₯
click through the lore, bestie, it's all connected π§
- Kernel file
./drivers/opp/cpu.cβ that's where she lives π dev_pm_opp_init_cpufreq_table(9)dev_pm_opp_free_cpufreq_table(9)dev_pm_opp_cpumask_remove_table(9)dev_pm_opp_get_sharing_cpus(9)
π the cute sign-off π
this little slice of kernel wisdom comes to you from ./drivers/opp, dated October 2026, and it's all wrapped up in this very manual page titled dev_pm_opp_set_sharing_cpus(9). go forth and share your OPP tables responsibly, bestie, ily, mwah ππΈβ¨
π¦ 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