tb_tunnel_port_on_path(9)
β¨ tb_tunnel_port_on_path(9) β¨
okay so bestie, you found a kernel API manpage, and honestly? this one is a little cutie. it lives in the Kernel API Manual, it's called tb_tunnel_port_on_path, and it answers exactly one question: does this tunnel go through this port or not. that's it. that's the whole vibe. π¦
π NAME π
tb_tunnel_port_on_path β bestie, it literally just tells you: does the tunnel go through port?? yes or no, no essay required π
πΈ SYNOPSIS πΈ
bool tb_tunnel_port_on_path (const struct tb_tunnel *tunnel , const
struct tb_port *port );
like, look at her go. she takes a tunnel, she takes a port, she hands you back a bool. main character energy fr fr π
π«Ά ARGUMENTS π«Ά
tunnelβ the tunnel you're checking, typed asconst struct tb_tunnel *. this is the thing we're asking questions about, so be nice to it β¨portβ the port you're checking, typed asconst struct tb_port *. this is the thing we're asking whether the tunnel rolls through πͺ
π₯ RETURN π₯
so here's the tea β β it returns true if the tunnel goes through port, and the direction does not matter (like, we're not out here being picky about which way the packets are headed, we're not doing that π). otherwise it returns false. that's the whole answer, no cap π―
π§ SEE ALSO π§
the kernel file for this one is ./drivers/thunderbolt/tunnel.c β go read her, she's iconic π
and then, because she's a social butterfly, here's her whole friend group (yes, all of them, every single one, we don't leave anyone out at this table π«Ά):
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_maximum_bandwidth(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)
like, that's a lot of tunnel functions. she knows everybody. social queen π
ngl this page is short and sweet β the whole function is basically a vibe check for one port against one tunnel. no side effects, no drama, no "it depends" π
and that's a wrap, bestie!! this page is brought to you by ./drivers/thunderbolt, dated October 2026 β go forth, check your ports, and slay π
π
π¦ 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