thermal_fwno...ice_register(9)
π thermal_fwnode_cooling_device_register(9)
okay bestie, so this is a page straight out of the Kernel API Manual β the function name gets truncated in the header to thermal_fwno...ice_register(9) but the real full name is right below, promise π«Ά
β¨ NAME β¨
thermal_fwnode_cooling_device_register β register an thermal cooling device π‘οΈπ
(yes, "an thermal", the kernel said what it said, we're not fixing it π)
π¦ SYNOPSIS π¦
struct thermal_cooling_device * thermal_fwnode_cooling_device_register
(struct fwnode_handle *fwnode , int fwn_index , const char *type , void
*devdata , const struct thermal_cooling_device_ops *ops );
π ARGUMENTS π
fwnodeβ-- undescribed --π that's literally all the docs give us, no cap. We move.fwn_indexβ-- undescribed --π same energy, also undescribed. Iconic of the docs, honestly.typeβ the thermal cooling device type.devdataβ device private data.opsβ standard thermal cooling devices callbacks.
π DESCRIPTION π
So this function registers a cooling device with a device tree node reference. β¨
What that actually means in group-chat terms: this interface function adds a brand new thermal cooling device (a fan, a processor, ...) into the /sys/class/thermal/ folder as cooling_device[0-*]. ππ₯
And then β the main character move β it tries to bind itself to all the thermal zone devices registered at the same time. It's giving networking at the function level, fr fr. π«Ά
π RETURN π
It hands you back a pointer to the created struct thermal_cooling_device β or an ERR_PTR. π
β οΈ Caller must check the return value with the IS_ERR*() helpers. Like, actually check it. Do not skip the vibe check on your pointers bestie, that's how you get a crash π§
π₯ SEE ALSO π₯
- Kernel file
./drivers/thermal/thermal_fw.cπ devm_thermal_fwnode_cooling_device_register(9)π
and that's the whole page, you ate that π
β source path ./drivers/thermal, dated October 2026, filed under thermal_fwno...ice_register(9) β periodt, see ya π
π¦ 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