dev_pm_opp_get_sharing_cpus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 here
  • cpumask β€” 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 -ENODEV if the OPP table isn't already present 😭 like, no table, no info
  • and it returns -EINVAL if 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:


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