tb_configure_asym(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_configure_asym(9) β€” the kernel API glow-up page πŸ¦‹

okay so this is a page from the Kernel API Manual, function tb_configure_asym(9), and honestly it's giving "networking but make it fashion." let's get into it bestie πŸŽ€


✨ NAME ✨

tb_configure_asym β€” transition links to asymmetric if needed πŸ‘‘

like, it checks whether your link should be lopsided (in the lane sense) and if so, it makes it happen. no cap.


🌸 SYNOPSIS 🌸

int tb_configure_asym (struct tb *tb , struct tb_port *src_port , struct
tb_port *dst_port , int requested_up , int requested_down );

yup, that's the whole signature, copied exactly, don't come for me πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • tb β€” the domain structure. it's the whole vibe container, the domain, the main character 🌈
  • src_port β€” source adapter to start the transition from. where the glow-up begins ✨
  • dst_port β€” destination adapter. the other end of the link, the destination of the slay 🫢
  • requested_up β€” additional bandwidth (Mb/s) required upstream. yes, in Mb/s, keep up πŸ”₯
  • requested_down β€” additional bandwidth (Mb/s) required downstream. also Mb/s, also extra, also important πŸ’œ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's what it actually does: it transitions the links between src_port and dst_port into asymmetric mode β€” that's three lanes in the direction going from src_port towards dst_port, and one lane in the opposite direction 🌸

but like, only if the bandwidth requirements on that link exceed asym_threshold. and "bandwidth requirements" means requested plus what's currently consumed, so don't forget the currently-consumed part bestie, it's literally part of the math 😭

⚠️ important: must be called with available >= requested over all links. all of them. every single one. don't @ me, that's just the rule πŸ’€

⭐ RETURN ⭐

  • 0 on success β€” slay πŸ’…
  • negative errno otherwise β€” not slay, check your errno πŸ™ˆ

πŸŽ€ SEE ALSO πŸŽ€


and that's the page! 🧚 this one lives in ./drivers/thunderbolt, dated October 2026, and yeah, it's tb_configure_asym(9) all the way down. go configure some asymmetry, bestie, you've got this πŸ’–βœ¨

πŸ“¦ where this page comes from