STRUCT TZ_EPISODE(9)
π NAME π β struct tz_episode(9)
okay bestie, this is the manual page for struct tz_episode(9) from the Kernel API Manual β aka struct tz_episode, and the official one-liner is a mitigation episode information. It's giving βkernel-doc but make it fashion,β and we're gonna go through every single bit together. π
π SYNOPSIS π
Here's the whole struct, copied exactly so there's no βwait, did she change a field?β moment:
struct tz_episode {
ktime_t timestamp;
ktime_t duration;
struct list_head node;
int max_temp;
struct trip_stats trip_stats[];
};
π Members π
timestampβ the first trip point crossed the way up. Like the moment the episode says βhello bestie, we're starting.β β¨durationβ total duration of the mitigation episode. The full timer moment, no cap. β³nodeβ a list element to be added to the list of tz events. It's the little link in the chain, main character energy for the list. πmax_tempβ maximum zone temperature during this episode. The peak of the drama, temperature-wise. π₯trip_statsβ per trip point statistics, and it's a flexible array. Yes, flexible β she contains multitudes. π¦
πΈ Description πΈ
The tz_episode structure describes a mitigation episode. A mitigation episode begins when the trip point with the lower temperature is crossed the way up, and it ends when it is crossed the way down. Internally: start low-key, end when we come back down, periodt. π
During this episode we can have multiple trip points crossed the way up and down if there are multiple trip described in the firmware after the lowest temperature trip point. That's the whole rule, bestie β no extra lore, no invented plot twists. π«Ά
π¦ SEE ALSO π¦
Kernel file: ./drivers/thermal/thermal_debugfs.c
struct cdev_debugfs(9)struct cdev_record(9)struct trip_stats(9)struct tz_debugfs(9)struct thermal_debugfs(9)thermal_debug_cdev_state_update(9)thermal_debug_cdev_add(9)thermal_debug_cdev_remove(9)
okay that's the whole page, bestie π this cutie signs off from source/version ./drivers/thermal, dated October 2026, and the manual title is still struct tz_episode(9). mwah π
π¦ 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