STRUCT IWL_TT_MGMT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct iwl_tt_mgmt(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, welcome to the glow-up of struct iwl_tt_mgmt(9) β€” the Thermal Throttling Management structure ✨ this is the little control room that keeps your wifi card from literally melting, and we're gonna go through it field by field, no skips, no cap 🫢


🌸 NAME 🌸

struct iwl_tt_mgmt β€” the Thermal Throttling Management structure. that's it, that's the whole vibe: it manages the throttling, thermally. πŸ”₯


✨ SYNOPSIS ✨

here's the whole struct, looking iconic, copied exactly because we do not paraphrase code in this house:

struct iwl_tt_mgmt {
    enum iwl_tt_state state;
    bool advanced_tt;
    u8 tt_power_mode;
    bool ct_kill_toggle;
  #ifdef CONFIG_IWLWIFI_DEBUG;
    s32 tt_previous_temp;
  #endif;
    struct iwl_tt_restriction *restriction;
    struct iwl_tt_trans *transaction;
    struct timer_list ct_kill_exit_tm;
    struct timer_list ct_kill_waiting_tm;
 };

like, look at her. all those fields. main character struct energy, honestly πŸ‘‘


πŸŽ€ Members πŸŽ€

okay so let's meet the squad one by one πŸ’–

  • state β€” the current Thermal Throttling state. the mood ring of the whole operation. 🌈
  • advanced_tt β€” a bool that says whether advanced thermal throttle is required. highkey important. ⭐
  • tt_power_mode β€” the Thermal Throttling power mode index being used to set the power level when the thermal throttling state != IWL_TI_0. and when it is throttling, tt_power_mode should be set to a different power mode based on the current tt state. iykyk πŸ’…
  • ct_kill_toggle β€” used to toggle the CSR bit when checking uCode temperature. little flip-flop, big job. πŸ¦‹
  • tt_previous_temp β€” the last measured temperature. the receipt, basically. 🧾 (also: it only exists when CONFIG_IWLWIFI_DEBUG is on, because debug-gated fields are a whole aesthetic πŸ™ˆ)
  • restriction β€” ptr to the restriction tbl, used by advance thermal throttling to determine how many tx/rx streams should be used in the tt state; and also whether HT can be enabled or not. so like, it decides how much wifi you're allowed to have. 😭
  • transaction β€” ptr to the adv trans table, used by advance thermal throttling state transaction. the transition queen herself. πŸ‘‘
  • ct_kill_exit_tm β€” timer to exit thermal kill. your get-out-of-jail timer. ⏰
  • ct_kill_waiting_tm β€” timer to enter thermal kill. your get-into-jail timer. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

go touch grass in the kernel source, bestie:

Kernel file ./drivers/net/wireless/intel/iwlwifi/dvm/tt.h struct iwl_tt_restriction(9), struct iwl_tt_trans(9)


heads up bestie: tt_previous_temp is wrapped in #ifdef CONFIG:IWLWIFI_DEBUG in the source, so if you're poking at it without that config, it's giving absent πŸ«₯ β€” and tt_power_mode only needs its own distinct power mode when state != IWL_TI_0, so don't go setting it for no reason fr fr.

🌸 okay that's the page!! sourced from ./drivers/net/wireless/intel/i... and dated October 2026 β€” mwah, go keep those thermals in check, ily, bye πŸ’œπŸŽ€

πŸ“¦ where this page comes from