tb_tunnel_discover_pci(9)
π tb_tunnel_discover_pci β Kernel API Manual π
okay bestie, welcome to tb_tunnel_discover_pci(9) β yes that's the section 9 kernel API manual, we're in the deep end and honestly? we're thriving. grab a strawberry π and let's go.
β¨ NAME β¨
tb_tunnel_discover_pci β literally just discovers existing PCIe tunnels. that's the whole vibe. no cap. π₯
π SYNOPSIS π
struct tb_tunnel * tb_tunnel_discover_pci (struct tb *tb , struct
tb_port *down , bool alloc_hopid );
yes she's a function that hands you back a struct tb_tunnel *, and yes the line break in the middle is exactly how the manpage has it, don't come for me π
π¦ ARGUMENTS π¦
tbβ pointer to the domain structure π (the whole neighborhood, basically)downβ the PCIe downstream adapter β¬οΈalloc_hopidβ allocate HopIDs from visited ports ποΈ like little tickets collected along the way
π DESCRIPTION π
so here's the tea β: if the down adapter is active, it follows the tunnel all the way to the PCIe upstream adapter β and then back again. π full round trip, main character energy, no shortcuts.
πΈ RETURN πΈ
you get a pointer to struct tb_tunnel π«Ά β or NULL if there was no tunnel at all. that's it. that's the return. π
β SEE ALSO β
the kernel file lives at ./drivers/thunderbolt/tunnel.c π and honestly the friend group here is huge, so buckle up:
tb_available_credits(9)tb_tunnel_event(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_release_unused_bandwidth(9)tb_tunnel_reclaim_available_bandwidth(9)
like I said. iconic turnout. π
sources say this page comes from ./drivers/thunderbolt and is dated October 2026 β so yeah, she's from the future, we stan a time traveler π§β¨
okay that's the whole page bestie, go forth and discover those tunnels ππ¦π
π¦ 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