STRUCT TB_RETIMER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct tb_retimer(9) ✨

okay so this is a page from the Kernel API Manual, bestie β€” it's all about struct tb_retimer, which is literally the Thunderbolt retimer struct. yes THE retimer. we're doing kernel internals today and honestly? iconic. πŸ’…


🌸 NAME 🌸

struct tb_retimer β€” Thunderbolt retimer, that's it, that's the whole vibe πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

struct tb_retimer {
    struct device dev;
    struct tb *tb;
    u8 index;
    u32 vendor;
    u32 device;
    struct tb_port *port;
    struct tb_nvm *nvm;
    bool no_nvm_upgrade;
    u32 auth_status;
  #ifdef CONFIG_USB4_DEBUGFS_MARGINING;
    struct tb_margining *margining;
  #endif;
 };

like, look at her. gorgeous. every field accounted for. πŸ“‹βœ¨


πŸ’– Members πŸ’–

  • dev β€” the struct device for the retimer. it's the retimer's little identity card fr πŸͺͺ
  • tb β€” pointer to the domain the retimer belongs to. where she lives, basically 🏠
  • index β€” the retimer index facing the router USB4 port. the numbering situation πŸ”’
  • vendor β€” vendor ID of the retimer. who made her πŸ‘‘
  • device β€” device ID of the retimer. which model she is 🏷️
  • port β€” pointer to the lane 0 adapter. yes lane 0 specifically, no cap πŸ›£οΈ
  • nvm β€” pointer to the NVM if the retimer has one, and NULL otherwise. she may or may not have the nvm, it's giving mystery 🫢
  • no_nvm_upgrade β€” prevent NVM upgrade of this retimer. hard no on the upgrade, bestie 🚫
  • auth_status β€” status of last NVM authentication. how'd the last auth go? this tells you πŸ”
  • margining β€” pointer to margining structure if enabled. only a thing when that debugfs config is turned on, iykyk πŸ“
tiny heads-up: margining is wrapped in #ifdef CONFIG_USB4_DEBUGFS_MARGINING β€” so if that config isn't set, that field is simply not there. don't go looking for it and then act surprised 😭

🌈 SEE ALSO 🌈

so many friends. she's got a whole friend group, we love a social queen πŸ‘‘


and that's the whole page, bestie, we ate and left zero crumbs πŸ’€βœ¨ this one lives in ./drivers/thunderbolt, dated October 2026 β€” like, the far future, main character energy fr fr πŸ•°οΈπŸ‘‘ love that for us. mwah πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from