devfreq_recommended_opp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

hey bestie, welcome to the devfreq_recommended_opp(9) page from the Kernel API Manual ✨

devfreq_recommended_opp β€” the helper function that gets you the proper OPP for the freq value you hand to the target callback. πŸ’–


✨ SYNOPSIS ✨

struct dev_pm_opp * devfreq_recommended_opp (struct device *dev ,
unsigned long *freq , u32 flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the devfreq user device. (parent of devfreq) 🫢
  • freq β€” the frequency given to the target function.
  • flags β€” flags handed from the devfreq framework.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: the callers are required to call dev_pm_opp_put for the returned OPP after use. that's the requirement, bestie β€” don't forget it πŸ’…


πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./drivers/devfreq/devfreq.c


okay that's the whole page, bestie πŸŽ€ source/version: ./drivers/devfreq; date: October 2026; manual: devfreq_recommended_opp(9) πŸ’…

πŸ“¦ where this page comes from