dev_pm_opp_o...required_opp(9)
π 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:
dev_pm_opp_of_remove_table(9)_opp_add_static_v2(9)devm_pm_opp_of_add_table(9)dev_pm_opp_of_add_table(9)dev_pm_opp_of_add_table_indexed(9)devm_pm_opp_of_add_table_indexed(9)dev_pm_opp_of_cpumask_remove_table(9)dev_pm_opp_of_cpumask_add_table(9)dev_pm_opp_of_get_sharing_cpus(9)of_get_required_opp_performance_state(9)dev_pm_opp_get_of_node(9)dev_pm_opp_calc_power(9)dev_pm_opp_of_register_em(9)
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 isdev_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
- 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