dt_has_supported_hw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dt_has_supported_hw(9) πŸ’…

okay so bestie, this page lives in the Kernel API Manual and it's about a tiny bool helper that checks the OPP/DT situation. It's giving β€œsmall function, big main character energy” ✨


✨ NAME ✨

  • dt_has_supported_hw β€” Check if any OPPs use opp-supported-hw

πŸ¦‹ SYNOPSIS πŸ¦‹

bool dt_has_supported_hw (void );

πŸ’– ARGUMENTS πŸ’–

  • void β€” no arguments. literally none, bestie 🫢

🌸 DESCRIPTION 🌸

So here's the tea: if we ask the cpufreq framework to use the opp-supported-hw feature, it will ignore every OPP node without that DT property. every OPP node without it gets ignored, no cap.

And if none of the OPPs have it? 😭 The driver will fail probing, due to the lack of OPPs. That's the whole warning vibe β€” don't come for this helper unless you're ready for the DT property situation.

It returns true if we have at least one OPP with the opp-supported-hw property. That's it. That's the check. slay βœ…

πŸ”₯ SEE ALSO πŸ”₯


okay bye bestie, stay iconic πŸ’œ β€” this came from source/version ./drivers/cpufreq, dated October 2026. mwah πŸŽ€

πŸ“¦ where this page comes from