STRUCT THERMAL_DEBUGFS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

mwah πŸ’‹ β€” source: ./drivers/thermal, version/date: October 2026.

πŸ“¦ where this page comes from