tb_tunnel_discover_pci(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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