STRUCT TB_SWITCH_TMU(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct tb_switch_tmu β€” Structure holding router TMU configuration ✨

okay bestie, so this is a page from the Kernel API Manual about struct tb_switch_tmu, and it's literally the little vibe-holder for a router's TMU config πŸ’…. Yes, TMU. Yes, routers. Yes, you're gonna slay this.


🌸 SYNOPSIS 🌸

struct tb_switch_tmu {
    int cap;
    bool has_ucap;
    enum tb_switch_tmu_mode mode;
    enum tb_switch_tmu_mode mode_request;
};

look at her. four fields. absolute main character energy πŸ‘‘


πŸŽ€ Members πŸŽ€

  • cap β€” the offset to the TMU capability, and if it wasn't found it's just 0. like, no cap found, cap is zero, iconic wordplay fr fr 🫢
  • has_ucap β€” the vibe check on whether this switch supports uni-directional mode. true = she can, false = she can't, no notes πŸ’€
  • mode β€” the TMU mode that relates to the upstream router, and it reflects the actual HW setting. for the host router? don't care, not our problem, lowkey ignore it πŸ™ˆ
  • mode_request β€” the TMU mode that's being requested to set. also related to the upstream router, and also a don't-care for the host router. so basically mode is what she's wearing and mode_request is what she wants to wear ✨
heads up bestie: mode and mode_request are both upstream-router-coded, and both say "Don't care for host router" β€” so if you're on the host router, do not come for them πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, in order, no one left out (i would never) πŸ₯°


and that's the whole page, bestie, you ate that πŸ“

sign-off time: this lil masterpiece lives in ./drivers/thunderbolt, dated October 2026, and yes the manual page title was struct tb_switch_tmu(9) the whole time β€” iykyk πŸ’œ

πŸ“¦ where this page comes from