dev_pm_opp_set_sharing_cpus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, ngl
  • cpumask β€” the cpumask of the CPUs that share the OPP table with cpu_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 🧚


πŸŽ€ 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