tb_tunnel_re...ed_bandwidth(9)
π tb_tunnel_release_unused_bandwidth(9) β Kernel API Manual π
okay bestie so this is a page from the Kernel API Manual (the (9) section, Linux kernel internals, iykyk) and it's about one singular little function that does one singular little thing: it makes a tunnel give back the bandwidth it wasn't even using. generous queen behavior fr fr π
β¨ NAME β¨
tb_tunnel_release_unused_bandwidth β Release unused bandwidth π
like... literally just that. release. the unused. bandwidth. no notes. π
π¦ SYNOPSIS π¦
int tb_tunnel_release_unused_bandwidth (struct tb_tunnel *tunnel );
one function, one pointer argument, returns an int. that's the whole vibe check and it passed. β
πΈ ARGUMENTS πΈ
tunnelβ Tunnel whose unused bandwidth to release π« so like, this is the Thunderbolt tunnel in question, and it's the one that's gonna hand back the bandwidth it's not using. main character energy, honestly.
π DESCRIPTION π
okay so here's the tea β β if the tunnel supports dynamic bandwidth management (and right now? that's the USB3 tunnels, at the moment, that's the whole list bestie) then this function makes it release all the unused bandwidth.
not some. not a lil bit. all of it. the way that it just frees up what it's not using?? iconic. π
heads up though β if your tunnel doesn't do dynamic bandwidth management, this whole thing is a no-op vibe, because the "dynamic" part is literally the precondition. read the room. π
π₯ RETURN π₯
0on success π₯³ slay- negative errno otherwise π (that's your classic kernel "something went sideways" signal, ngl)
π«Ά SEE ALSO π«Ά
the kernel file lives at ./drivers/thunderbolt/tunnel.c β that's the source of truth, go look at it if you wanna see the real thing π and then honestly just binge 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_maximum_bandwidth(9)tb_tunnel_allocated_bandwidth(9)tb_tunnel_alloc_bandwidth(9)tb_tunnel_consumed_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
and that's the whole page bestie, mwah π this little gem ships out of ./drivers/thunderbolt and it's dated October 2026 β so yeah, future-coded manual page, we love a timestamp that ate. β¨ go free that unused bandwidth. 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