thermal_debug_cdev_add(9)
π NAME π
okay bestie, this is thermal_debug_cdev_add(9) from the Kernel API Manual, and its whole little mission is literally: add a cooling device debugfs entry. that's the vibe. π
β¨ SYNOPSIS β¨
void thermal_debug_cdev_add (struct thermal_cooling_device *cdev , int state );
π¦ ARGUMENTS π¦
cdevβ a pointer to a cooling device. yep, that's the one.stateβ current state of the cooling device. no cap.
π₯ DESCRIPTION π₯
bestie, here's the tea: it allocates a cooling device object for debug, initializes the statistics, and creates the entries in sysfs. it's giving setup-and-go energy, fr fr. π
the return type is void, so don't go chasing a return value β there isn't one to find. π«Ά
π SEE ALSO π
go peek at these, iykyk:
- Kernel file
./drivers/thermal/thermal_debugfs.c struct cdev_debugfs(9)struct cdev_record(9)struct trip_stats(9)struct tz_episode(9)struct tz_debugfs(9)struct thermal_debugfs(9)thermal_debug_cdev_state_update(9)thermal_debug_cdev_remove(9)
and that's the whole page, bestie π it comes from ./drivers/thermal, dated October 2026, and it's literally called thermal_debug_cdev_add(9) β periodt. πβ¨
π¦ 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