STRUCT UCSI_TBT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ NAME πŸ¦‹

struct ucsi_tbt β€” the Thunderbolt Alternate Mode private data structure, and yes bestie it's exactly as niche and iconic as it sounds πŸ’…

So this is a manpage from the Kernel API Manual, aka struct ucsi_tbt(9) β€” go off kernel docs ✨


🌸 SYNOPSIS 🌸

okay so here's the whole struct, copy it exactly, no cap:

struct ucsi_tbt {
    struct ucsi_connector *con;
    struct typec_altmode *alt;
    struct work_struct work;
    int cam;
    u32 header;
 };

that's it. that's the struct. she's small but she's doing the most πŸŽ€


✨ Members ✨

Every field, get into it:

  • con β€” a pointer to the UCSI connector structure 🫢 literally just pointing at her connector, iykyk
  • alt β€” a pointer to the typec altmode structure ⭐ the altmode bestie in question
  • work β€” a Work structure πŸ’€ yes it's called work, and yes it's doing the actual labour
  • cam β€” an offset into the list of alternate modes supported by the PPM πŸ‘‘ that's the number that tells you where you are in the whole altmode lineup
  • header β€” the VDO header πŸ”₯ header era, we love to see it

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/usb/typec/ucsi/thunderbolt.c β€” go read the source if you're feeling brave, it's giving main character energy 🌈

πŸ’– reminder bestie: cam is literally an offset into the list of alternate modes supported by the PPM, don't forget it or the vibe check fails 😭

okay that's the whole page, you ate that πŸ“ this was struct ucsi_tbt(9) from the Kernel API Manual, source ./drivers/usb/typec/ucsi, dated October 2026 β€” slay, periodt, go read some kernel code πŸ’œπŸ§š

πŸ“¦ where this page comes from