devm_therma...one_register(9)
π NAME π
devm_thermal_of_zone_register β bestie, this is the one that registers a thermal and ties it to the sensor's life cycle π
β¨ SYNOPSIS β¨
struct thermal_zone_device * devm_thermal_of_zone_register (struct
device *dev , int sensor_id , void *data , const struct
thermal_zone_device_ops *ops );
okay so that's the whole signature, no cap β copy it exactly, don't be out here freestyling π«Ά
πΈ ARGUMENTS πΈ
devβ adevicestructure pointer, pointing at the sensor that's gonna be tied to the thermal zone's OF life cycle. it's giving "main character device energy" π«sensor_idβ the sensor identifier, literally just which sensor we're talking about π₯dataβ a pointer to private data that gets stored in the thermal zone's'devdata'field. yes, the field is literally called'devdata', iykyk πopsβ a pointer to the ops structure that's associated with the sensor. the whole vibe of what it can do lives in there β¨
π¦ DESCRIPTION π¦
so this function is the device version of the thermal_of_zone_register function. that's it, that's the tea β β it's the devm-flavoured twin, meaning it's the one that comes with life-cycle handling tied to the device.
ngl, "device version" is doing a lot of heavy lifting here β just know it's thedevm_sibling ofthermal_of_zone_registerand keep it moving π
π SEE ALSO π
Kernel file ./drivers/thermal/thermal_of.c, plus the whole friend group:
thermal_of_get_trip_type(9)thermal_of_zone_unregister(9)thermal_of_zone_register(9)devm_thermal_of_zone_unregister(9)thermal_of_cooling_device_register(9)devm_thermal_of_cooling_device_register(9)devm_thermal_of_child_cooling_device_register(9)
like, the entire thermal squad, obsessed honestly π
and that's the page, bestie π β straight out of ./drivers/thermal, dated October 2026, and yeah the header up top really does say devm_therma...one_register(9) with the truncation and everything π iconic. mwah, go register some thermals responsibly ππ
π¦ 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