STRUCT THERMAL_DEBUGFS(9)
π NAME
okay so bestie, this is struct thermal_debugfs(9) from the Kernel API Manual β and it's literally the high level structure for a thermal object in debugfs π
β¨. It's giving shared-base-camp-for-thermal-debugfs-stats, and I'm obsessed.
β¨ SYNOPSIS β¨
struct thermal_debugfs {
struct dentry *d_top;
struct mutex lock;
union {
struct cdev_debugfs cdev_dbg;
struct tz_debugfs tz_dbg;
};
};
π Members π
d_topβ top directory of the thermal object directory. directory queen behavior π.lockβ per object lock to protect the internals. do not touch the internals without the lock, periodt π.{unnamed_union}β anonymous. it's literally unnamed, bestie π.cdev_dbgβ a cooling device debug structure π§.tz_dbgβ a thermal zone debug structure π‘οΈ.
π¦ Description π¦
The thermal_debugfs structure is the common structure used by the cooling device or the thermal zone to store the statistics. That's highkey the whole assignment: one shared struct, two possible thermal besties, all the stats stored in it. no cap π.
π SEE ALSO π
Kernel file: ./drivers/thermal/thermal_debugfs.c
go stan these, iykyk:
struct cdev_debugfs(9)struct cdev_record(9)struct trip_stats(9)struct tz_episode(9)struct tz_debugfs(9)thermal_debug_cdev_state_update(9)thermal_debug_cdev_add(9)thermal_debug_cdev_remove(9)
mwah π β source: ./drivers/thermal, version/date: October 2026.
π¦ 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