tb_port_set_link_width(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

tb_port_set_link_width(9) β€” a Kernel API Manual page, but make it fashion πŸ’…βœ¨

πŸŽ€ NAME πŸŽ€

okay so this is the page for tb_port_set_link_width, and yep, the manual name is Kernel API Manual. The function is tb_port_set_link_width β€” Set target link width of the lane adapter. That’s the name and that’s the assignment, periodt. πŸ’–

🌸 SYNOPSIS 🌸

int tb_port_set_link_width (struct tb_port *port , enum tb_link_width
width );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • port β€” the lane adapter. That’s the port we’re talking about, no cap.
  • width β€” the target link width. Like the width we’re aiming for, bestie.

✨ DESCRIPTION ✨

So tb_port_set_link_width sets the target link width of the lane adapter to width. That’s it. That’s the whole vibe.

Important caveat, and I need you to hear me: it does not enable/disable lane bonding. Not its job. For that, call tb_port_set_lane_bonding. Do not ask this function to do lane bonding; it said no. πŸ’…

πŸ’œ RETURN πŸ’œ

It returns 0 on success, and a negative errno otherwise. Slay when it’s 0, cry when it’s negative, iykyk. 😭

🌈 SEE ALSO 🌈

Kernel file: ./drivers/thunderbolt/switch.c

The whole bestie group chat, in order:


byeee 🫢 source/version: ./drivers/thunderbolt Β· date on this glow-up: October 2026 Β· page: tb_port_set_link_width(9) πŸ’–

πŸ“¦ where this page comes from