tb_tunnel_alloc_bandwidth(9)
β¨ tb_tunnel_alloc_bandwidth β¨
okay so this is a page from the Kernel API Manual (section 9, kernel land bestie π
) and it's all about tb_tunnel_alloc_bandwidth β literally the glow-up button for a tunnel's bandwidth allocation π¦
πΈ NAME πΈ
tb_tunnel_alloc_bandwidth β change tunnel bandwidth allocation. that's it, that's the whole vibe π
β SYNOPSIS β
int tb_tunnel_alloc_bandwidth (struct tb_tunnel *tunnel , int *alloc_up
, int *alloc_down );
copy it exactly, no cap π₯
π ARGUMENTS π
tunnelβ the tunnel whose bandwidth allocation you're changing. your main character π«Άalloc_upβ new upstream bandwidth, in Mb/s. upward vibes β¬οΈalloc_downβ new downstream bandwidth, in Mb/s. downward vibes β¬οΈ
π§ DESCRIPTION π§
the way this one is simple: it tries to change the tunnel bandwidth allocation. that's the whole function. it's giving "short but iconic" π
lowkey important: you're asking foralloc_upandalloc_downvalues, not demanding them β see RETURN for why that matters π
π RETURN π
0β on success πβ¨ and here's the slay part: it updatesalloc_upandalloc_downto the values that were actually allocated β which may not be the same as the ones you passed in originally. so read them back, bestie, fr fr.- Negative errno β in case of failure π classic kernel move.
π SEE ALSO π
kernel file ./drivers/thunderbolt/tunnel.c, plus the whole tunnel squad π«Ά:
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_consumed_bandwidth(9)tb_tunnel_release_unused_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
mwah π that's the page β from ./drivers/thunderbolt, dated October 2026, and yes the page name is tb_tunnel_alloc_bandwidth(9) in case you forgot already ππ
π¦ 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