STRUCT TZ_EPISODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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