STRUCT TT_THERMAL_ZONE(9)
π 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 indebugfsthat 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 namedida, yes it's an ID allocator πidβ the ID of this template, used by thedebugfsinterface. 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 thetripslist. 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
- 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