dev_pm_opp_get_bw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dev_pm_opp_get_bw β€” like, the whole vibe

okay so bestie, welcome to the Kernel API Manual ✨ this one's a lil function called dev_pm_opp_get_bw and it's genuinely so straightforward you're gonna slay it. it's giving "small but mighty", yk? πŸŽ€


✨ NAME ✨

dev_pm_opp_get_bw β€” literally just gets the bandwidth corresponding to an opp πŸ¦‹


🌸 SYNOPSIS 🌸

unsigned long dev_pm_opp_get_bw (struct dev_pm_opp *opp , bool peak ,
       int index );

like yes that's the whole signature, no cap πŸ’–


🫢 ARGUMENTS 🫢

  • opp β€” the opp you want the bandwidth for, bestie. that's who we're asking about πŸ’…
  • peak β€” this lil bool picks which bandwidth you get back: peak or average. choose your fighter 😭
  • index β€” the bandwidth index. yep, there can be more than one, so tell it which one you mean πŸ”₯

⭐ RETURN ⭐

bandwidth in kBps πŸ’– … else it returns 0. that's it, that's the whole deal. no drama, no surprises πŸ‘‘


🌈 SEE ALSO 🌈

so like, there's a whole friend group of opp functions and honestly they're all iconic. go say hi 🧚


and that's the page babes 🫢 this one lives under ./drivers/opp and it's dated October 2026 β€” mwah, go touch some bandwidth πŸ’‹βœ¨

πŸ“¦ where this page comes from