tb_tunnel_co...ed_bandwidth(9)
π tb_tunnel_consumed_bandwidth β from the Kernel API Manual (9) β¨
okay bestie, so this one's a kernel API page, section 9, and it's literally called tb_tunnel_consumed_bandwidth. we're in drivers/thunderbolt land and honestly? it's giving "small function, big feelings." π¦
β¨ NAME β¨
tb_tunnel_consumed_bandwidth β returns the bandwidth that a tunnel is consuming π
πΈ SYNOPSIS πΈ
int tb_tunnel_consumed_bandwidth (struct tb_tunnel *tunnel , int
*consumed_up , int *consumed_down );
π ARGUMENTS π
tunnelβ the tunnel you wanna check, bestie. that's the main character right there πconsumed_upβ consumed bandwidth in Mb/s, going fromdst_porttosrc_port. can beNULLπ«Άconsumed_downβ consumed bandwidth in Mb/s, going fromsrc_porttodst_port. can also beNULLπ«Ά
π DESCRIPTION π
so what it does is, it stores the amount of isochronous bandwidth the tunnel consumes into consumed_up and consumed_down. that's it, that's the vibe. no cap, it just fills those two out for you β¨
β RETURN β
0 on success, and a negative errno otherwise. lowkey iconic, highkey predictable π
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/thunderbolt/tunnel.c and here's the whole friend group, no one left behind fr fr:
tb_available_credits(9)tb_tunnel_event(9)tb_tunnel_discover_pci(9)tb_tunnel_alloc_pci(9)tb_tunnel_reserved_pci(9)tb_dp_bandwidth_mode_maximum_bandwidth(9)tb_tunnel_discover_dp(9)tb_tunnel_alloc_dp(9)tb_tunnel_alloc_dma(9)tb_tunnel_match_dma(9)tb_tunnel_discover_usb3(9)tb_tunnel_alloc_usb3(9)tb_tunnel_is_invalid(9)tb_tunnel_activate(9)tb_tunnel_deactivate(9)tb_tunnel_port_on_path(9)tb_tunnel_maximum_bandwidth(9)tb_tunnel_allocated_bandwidth(9)tb_tunnel_alloc_bandwidth(9)tb_tunnel_release_unused_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
reminder bestie: those twoint *out-params can beNULLand that's totally fine, the function still slays π
and that's the page!! source is ./drivers/thunderbolt, dated October 2026, manual name tb_tunnel_co...ed_bandwidth(9) β mwah, go read some more kernel docs, ily π§ππ
π¦ 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