tb_tunnel_maximum_bandwidth(9)
β¨ tb_tunnel_maximum_bandwidth(9) β¨
okay so bestie, welcome to the Kernel API Manual π
this one's a kernel function page, section 9, and it's literally called tb_tunnel_maximum_bandwidth β say that five times fast, I dare you π«Ά
πΈ NAME πΈ
tb_tunnel_maximum_bandwidth β returns the maximum possible bandwidth π yes, that's the whole vibe. it tells you the biggest bandwidth number this tunnel could ever dream of (as long as nobody else is hogging it, more on that below π).
π₯ SYNOPSIS π₯
int tb_tunnel_maximum_bandwidth (struct tb_tunnel *tunnel , int *max_up
, int *max_down );
that's it, that's the signature. no cap, just three little params and an int coming back at you π
π¦ ARGUMENTS π¦
tunnelβ the tunnel you're checking on π§ like, the main character here. this is the one getting the vibe check.max_upβ maximum upstream bandwidth in Mb/s β¬οΈ literally the up number, in Mb/s.max_downβ maximum downstream bandwidth in Mb/s β¬οΈ literally the down number, in Mb/s.
π RETURN π
- the maximum possible bandwidth this tunnel can support β if it's not limited by other bandwidth clients π (yes, "if". sharing is caring but sharing also caps your numbers, just saying).
-EOPNOTSUPPβ if the tunnel does not support this function π sorry bestie, this tunnel just doesn't do that.-ENOTCONNβ if the tunnel is not active π like, the tunnel is asleep, come back later.
π SEE ALSO π
kernel file ./drivers/thunderbolt/tunnel.c and honestly the whole friend group π«Ά:
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_allocated_bandwidth(9)tb_tunnel_alloc_bandwidth(9)tb_tunnel_consumed_bandwidth(9)tb_tunnel_release_unused_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
π‘ lowkey the whole bandwidth saga is in that list β 'allocated', 'consumed', 'unused', 'reclaim' β it's giving bandwidth economy, fr fr.
and that's the page, bestie π tysm for reading. this one lives in ./drivers/thunderbolt, dated October 2026 β mwah, slay, periodt πβ¨
π¦ 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