tb_available_bandwidth(9)
π tb_available_bandwidth(9) β like, the whole vibe π
okay so bestie, welcome to the Kernel API Manual β¨ this one's about available bandwidth for tunneling and ngl it's lowkey iconic. no cap, it's a whole function. let's get into it π«Ά
β¨ NAME β¨
tb_available_bandwidth β available bandwidth for tunneling π
β¨ SYNOPSIS β¨
int tb_available_bandwidth (struct tb *tb , struct tb_port *src_port ,
struct tb_port *dst_port , int *available_up , int *available_down ,
bool include_asym );
β¨ ARGUMENTS β¨
tbβ the domain structure, aka the whole main character of the setup πsrc_portβ source protocol adapter, where the vibes come from πΈdst_portβ destination protocol adapter, where the vibes are going π¦available_upβ available bandwidth upstream, in Mb/s β¬οΈavailable_downβ available bandwidth downstream, in Mb/s β¬οΈinclude_asymβ include bandwidth if the link is switched from symmetric to asymmetric, iykyk π
β¨ DESCRIPTION β¨
so basically: this calculates the maximum available bandwidth for protocol tunneling between src_port and dst_port at the moment, like right now, fr fr. β°
and how does it do that? it's the minimum of maximum link bandwidth across all links, reduced by the currently consumed bandwidth on that link. the way that math just works ππ
if include_asym is true, then it also includes the bandwidth that can be added when the links are transitioned into asymmetric β but bestie, hear me: it does not transition the links. it just counts it. π no funny business.
β¨ RETURN β¨
0 on success, negative errno otherwise. slay when it's zero, sad when it's not π
β¨ SEE ALSO β¨
- Kernel file
./drivers/thunderbolt/tb.c struct tb_cm(9)tb_consumed_usb3_pcie_bandwidth(9)tb_consumed_dp_bandwidth(9)tb_maximum_bandwidth(9)tb_configure_asym(9)tb_configure_sym(9)
ngl this one lives in./drivers/thunderbolt, dated October 2026, and it's thetb_available_bandwidth(9)page β go read the whole set, they ate π₯π
mwah, ily, go read a manpage today π§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms