STRUCT TT_THERMAL_ZONE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct tt_thermal_zone(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” today's main character is struct tt_thermal_zone, and honestly? it's giving template energy. Let's get into it 🫢


🌸 NAME 🌸

struct tt_thermal_zone β€” the Testing thermal zone template πŸŽ€

Like, it's a template. For thermal zones. For testing. iykyk πŸ’€


✨ SYNOPSIS ✨

struct tt_thermal_zone {
    struct list_head list_node;
    struct list_head trips;
    struct dentry *d_tt_zone;
    struct thermal_zone_device *tz;
    struct mutex lock;
    struct ida ida;
    int id;
    int temp;
    int tz_temp;
    unsigned int num_trips;
    unsigned int refcount;
 };

literally the whole shape of it, no cap πŸ‘‘


πŸ¦‹ Members πŸ¦‹

okay so every single field, one by one, because we do NOT skip πŸ’…

  • list_node β€” this one's the node in the list of all testing thermal zone templates. it's in the group chat πŸ“‹
  • trips β€” the list of trip point templates that belong to this thermal zone template. lil trip squad 🌈
  • d_tt_zone β€” a directory in debugfs that represents this template. it's the template's own little room πŸšͺ
  • tz β€” the test thermal zone built on this template, if present. key words: if present πŸ™ˆ
  • lock β€” a mutex that synchronizes changes to this template. no two besties editing at once, periodt πŸ”’
  • ida β€” the IDA for trip point IDs. yes it's literally named ida, yes it's an ID allocator πŸŽ€
  • id β€” the ID of this template, used by the debugfs interface. its whole government name πŸͺͺ
  • temp β€” a temperature value. that's it. that's the field 🌑️
  • tz_temp β€” the current thermal zone temperature, and this one only shows up after registration. post-glow-up temperature ✨
  • num_trips β€” how many trip points are chilling in the trips list. a headcount πŸ”’
  • refcount β€” reference counter for usage and removal synchronization. keeps everyone from leaving the party at the same time 😭

πŸ’– Description πŸ’–

so what is it? it represents a template of a thermal zone β€” and that template can be used for registering a test thermal zone with the thermal core πŸ”₯

that's the whole vibe. a template. a test zone. the thermal core. iconic behavior tbh πŸ‘‘


⭐ SEE ALSO ⭐

  • Kernel file ./drivers/thermal/testing/zone.c πŸ—‚οΈ
  • struct tt_trip(9) 🧚

aaaand that's the page, bestie πŸ’œ it came from the ./drivers/thermal/testing source, dated October 2026, and it's filed under struct tt_thermal_zone(9) β€” slay, no notes πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from