tb_tunnel_port_on_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 as const struct tb_tunnel *. this is the thing we're asking questions about, so be nice to it ✨
  • port β€” the port you're checking, typed as const 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 🫢):

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