thermal_bind_cdev_to_trip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual page for thermal_bind_cdev_to_trip(9) πŸ’…βœ¨ This is the one where a cooling device gets bound to a trip point, and honestly it’s giving β€œsmall function, big thermal-zone energy.”

πŸŽ€ NAME πŸŽ€

thermal_bind_cdev_to_trip - bind a cooling device to a thermal zone πŸ’–

✨ SYNOPSIS ✨

int thermal_bind_cdev_to_trip (struct thermal_zone_device *tz , struct
       thermal_trip_desc *td , struct thermal_cooling_device *cdev , struct
       cooling_spec *cool_spec );

🌸 ARGUMENTS 🌸

okay, the cast of characters:

  • tz β€” pointer to struct thermal_zone_device πŸ‘‘
  • td β€” descriptor of the trip point to bind cdev to 🎯
  • cdev β€” pointer to struct thermal_cooling_device 🧊
  • cool_spec β€” cooling specification for the trip point and cdev πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

This interface function binds a thermal cooling device to a certain trip point of a thermal zone device. no cap, that’s the whole vibe.

This function is usually called in the thermal zone device .bind callback. iykyk πŸ’…

πŸ”₯ RETURN πŸ”₯

0 on success, the proper error value otherwise. that’s it bestie β€” success gets the 0, everything else gets the proper error value 😭

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/thermal/thermal_core.c β€” and the whole friend group:


source/version: ./drivers/thermal · date: October 2026 · manual: Kernel API Manual · entry: thermal_bind_cdev_to_trip(9). bye bestie, go bind responsibly 🫢✨

πŸ“¦ where this page comes from