tb_switch_set_link_width(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual page for tb_switch_set_link_width(9) β€” yes that's the whole title, it's a mouthful, we love her anyway ✨


🌸 NAME 🌸

tb_switch_set_link_width β€” configure router link width πŸŽ€ literally just setting the width of a router's link, that's the whole gig


✨ SYNOPSIS ✨

int tb_switch_set_link_width (struct tb_switch *sw , enum tb_link_width
width );

that's the whole signature, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • sw β€” the router you're configuring, aka the main character of this operation πŸ‘‘
  • width β€” the new link width, the fresh fit you're putting her in πŸ’…

πŸ’– DESCRIPTION πŸ’–

So here's the tea: this sets the device router link width to width β€” and the perspective that matters is the router upstream port one, okay? Not the downstream side, the upstream side. Keep that straight, iykyk.

It also supports asymmetric links if the routers on both sides of the link support it 🧚 β€” so yeah, the two ends can lowkey be doing different things, that's allowed.

⚠️ It does nothing for the host router. Like, nothing-nothing. Don't come for the host router with this one, she's not participating πŸ™ˆ

⭐ RETURN ⭐

0 on success, and a negative errno otherwise 😭 β€” so if you get a negative number back, that's not a vibe, that's an error.


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/thunderbolt/switch.c, plus the whole friend group:

like, the entire thunderbolt port extended family showed up to the function call, obsessed πŸ”₯πŸ‘‘


🌈 and that's the page!! 🌈

cute little sign-off for the credits bestie: this one comes to you from ./drivers/thunderbolt, dated October 2026 β€” periodt, that's the footer, love you byeeeee πŸ’–πŸ’…πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from