tb_tunnel_a...ed_bandwidth(9)
π NAME π
tb_tunnel_allocated_bandwidth β return bandwidth allocated for the tunnel. That's the whole assignment, bestie: you check the tunnel and it tells you how much bandwidth it's been allocated. Straight from the Kernel API Manual, page tb_tunnel_a...ed_bandwidth(9), and yes it's giving very specific thunderbolt energy β¨
β¨ SYNOPSIS β¨
int tb_tunnel_allocated_bandwidth (struct tb_tunnel *tunnel , int *allocated_up , int *allocated_down );
π ARGUMENTS π
tunnelβ tunnel to check. Like, which tunnel are we looking at? πallocated_upβ currently allocated upstream bandwidth in Mb/s is stored here. It writes through this pointer, so don't hand it nonsense, fr fr.allocated_downβ currently allocated downstream bandwidth in Mb/s is stored here. Same situation, but downstream edition π
π RETURN π
- Bandwidth allocated for the tunnel. This may be higher than what the tunnel actually consumes. (iconic over-allocation moment, no cap π₯)
-EOPNOTSUPPβ if the tunnel does not support this function.-ENOTCONNβ if the tunnel is not active.- Negative errno β another error occurred.
π¦ SEE ALSO π¦
Kernel file: ./drivers/thunderbolt/tunnel.c β and the whole squad is:
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_alloc_bandwidth(9)tb_tunnel_consumed_bandwidth(9)tb_tunnel_release_unused_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
mwah π this little page was served from ./drivers/thunderbolt, dated October 2026 β catch you in the next manpage, bestie π«ΆπΈ
π¦ 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