of_devfreq_...gister_power(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_devfreq_cooling_register_power β€” a Kernel API Manual moment ✨

okay so bestie, welcome to the Kernel API Manual entry for of_devfreq_cooling_register_power(9) and honestly? it's giving "thermal management but make it OF-aware and power-literate" 🫢 lock in, this one's actually so useful.


🌸 NAME 🌸

of_devfreq_cooling_register_power β€” registers a devfreq cooling device, with OF and power information. that's it, that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

struct thermal_cooling_device * of_devfreq_cooling_register_power
(struct device_node *np , struct devfreq *df , struct
devfreq_cooling_power *dfc_power );

like, it hands you back a struct thermal_cooling_device * and takes three pointers. iconic signature tbh πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” pointer to the OF device_node. the device-tree representation, the whole "where do i live in the tree" situation 🌳
  • df β€” pointer to the devfreq device. this is your actual devfreq buddy that's getting cooled πŸ“‰
  • dfc_power β€” pointer to a devfreq_cooling_power. the power-info plug, if you're plugging one in πŸ”Œ

πŸ”₯ DESCRIPTION πŸ”₯

so the whole point: this registers a devfreq cooling device. that's the main character energy right there ✨

⚠️ heads up bestie: the available OPPs must be registered on the device. like, non-negotiable. no OPPs registered = no vibes.

now, if dfc_power is provided (like, you actually passed something in), the cooling device gets registered with the power extensions πŸ’ͺ cute. but β€” and this is the part you cannot skip β€”

for the power extensions to work correctly, devfreq should use the simple_ondemand governor. other governors are not currently supported. periodt. don't come crying to me when you swap governors and it acts up 😭

πŸ¦‹ SEE ALSO πŸ¦‹

lowkey go read these too, they're the friend group 🫢


aaaand that's the page!! πŸ’œ this one lives under ./drivers/thermal, dated October 2026, and it's part of the Kernel API Manual β€” of course it is πŸ’… mwah, go register some cooling devices responsibly, ily, bye πŸŽ€πŸŒˆβ­

πŸ“¦ where this page comes from