tb_path_port_on_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is tb_path_port_on_path(9) from the Kernel API Manual ✨ and it answers one very specific question: Does the path go through certain port? That’s literally the whole vibe check πŸ”₯


✨ SYNOPSIS ✨

here’s the exact signature, copied with love πŸ’…

bool tb_path_port_on_path (const struct tb_path *path , const struct
tb_port *port );

πŸŽ€ ARGUMENTS πŸŽ€

  • path β€” the path to check. Like, the whole route bestie πŸ›£οΈ
  • port β€” the switch to check. yes, the manpage says β€œswitch” here and we’re keeping it exactly like that πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so the function goes over all the hops on path and checks if port is any of them πŸ‘€ that’s it, that’s the whole thing.

Direction does not matter. fr fr, it literally doesn’t matter which way you’re going πŸŒ€


πŸ’… RETURN πŸ’…

true if port is on the path, and false otherwise. periodt πŸ’–


🌈 SEE ALSO 🌈


made with 🫢 from the ./drivers/thunderbolt corner of the kernel, dated October 2026 β€” this page is tb_path_port_on_path(9), and yes she ate πŸ’…βœ¨

πŸ“¦ where this page comes from