hwmon_devic..._for_thermal(9)
π hwmon_devic..._for_thermal(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a page called hwmon_devic..._for_thermal(9) (yes the name is truncated with dots, that's literally how it's printed, no cap, we do not fix it, we respect it π«Ά).
πΈ NAME πΈ
hwmon_device_register_for_thermal β register hwmon device for thermal subsystem π
β¨ SYNOPSIS β¨
struct device * hwmon_device_register_for_thermal (struct device *dev ,
const char *name , void *drvdata );
it's giving "one function, three arguments, zero chill" π
π¦ ARGUMENTS π¦
devβ the parent device π (the main character that this new device gets attached under)nameβ the hwmon name attribute π·οΈ (like, the actual name label for it)drvdataβ driver data to attach to created device π (your little bag of private stuff that rides along with the device)
π DESCRIPTION π
so here's the tea: the use of this function is restricted π. It exists for legacy reasons and it must only be called from the thermal subsystem. like, that's not a vibe suggestion, that's the rule, periodt.
β οΈ hwmon_device_unregister must be called when the device is no longer needed. don't just ghost it, bestie, clean up after yourself π
Returns the pointer to the new device. that's it, that's the return value π«
π SEE ALSO π
- Kernel file
./drivers/hwmon/hwmon.cπ hwmon_device_register_with_groups(9)hwmon_device_register_with_info(9)hwmon_device_register(9)hwmon_device_unregister(9)devm_hwmon_device_register_with_groups(9)devm_hwmon_device_register_with_info(9)hwmon_sanitize_name(9)devm_hwmon_sanitize_name(9)
like a whole friend group of hwmon functions, and honestly? obsessed π§π
okay that's the whole page!! sourced from ./drivers/hwmon πΈ, October 2026 β β mwah, go forth and register 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