dev_pm_opp_o...required_opp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dev_pm_opp_of_has_required_opp β€” your fave little kernel detective πŸ’–

okay so bestie, this is a page from the Kernel API Manual (that's the manual name, she's fancy), and honestly? she's short, she's sweet, and she's serving one specific job β€” let's get into it ✨


🌸 NAME 🌸

dev_pm_opp_of_has_required_opp β€” literally just finds out if a required-opps exists. that's it. that's the whole gig πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

bool dev_pm_opp_of_has_required_opp (struct device *dev );

like, you hand her a struct device *dev and she hands you back a bool. simple. iconic. πŸ’…


✨ ARGUMENTS ✨

  • dev β€” the device to investigate πŸ” bestie we are investigating her, put on the detective hat, it's giving main character energy

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe check 🫢: it returns true if the device's node has an "operating-points-v2" property AND if the corresponding node for the opp-table describes opp nodes that uses the "required-opps" property.

both of those things gotta be true, no cap. it's an and, not an or β€” the way that matters is so real 😭


⭐ RETURN ⭐

True if a required-opps is present, else false. literally that's it, go off king πŸ‘‘


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/opp/of.c β€” write that down bestie πŸ“

and here's the whole friend group, all referenced, all accounted for, not a single one left out:

they're all in the group chat, iykyk πŸ’¬πŸ§š


lowkey reminder: this page is dated October 2026, lives in ./drivers/opp, and the manual name on the tin is dev_pm_opp_o...required_opp(9) β€” the truncated header is not a typo, it's just her little nickname okay πŸ™ˆ

mwah, love u, go read the opp code, periodt πŸ’–πŸ“πŸ’€

πŸ“¦ where this page comes from