tb_xdomain_find_by_route(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tb_xdomain_find_by_route(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one is literally tb_xdomain_find_by_route, and it does exactly what it says on the tin: finds an XDomain by route string. no cap.

🌸 NAME 🌸

tb_xdomain_find_by_route β€” Find an XDomain by route string πŸ’–

✨ SYNOPSIS ✨

struct tb_xdomain * tb_xdomain_find_by_route (struct tb *tb , u64 route
);

πŸŽ€ ARGUMENTS πŸŽ€

  • tb β€” the domain where the XDomain belongs to, periodt.
  • route β€” the XDomain route string. iconic.

πŸ’– DESCRIPTION πŸ’–

So the way this works is: it finds the XDomain by walking through the Thunderbolt topology below tb πŸ¦‹.

The returned XDomain will have its reference count increased, so the caller needs to call tb_xdomain_put when it is done with the object. don’t forget, bestie 😭.

This will find all XDomains, including the ones that are not yet added to the bus (handshake is still in progress). yep, even the mid-handshake girlies πŸ’….

🚨 the caller needs to hold tb->lock. this is not a drill, hold the lock.

πŸ”₯ RETURN πŸ”₯

Pointer to struct tb_xdomain, or NULL if not found.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/thunderbolt/xdomain.c β€” plus the whole friend group:


and that’s the tea β˜• source: ./drivers/thunderbolt, version/date: October 2026, and the manual page is tb_xdomain_find_by_route(9) πŸ’– slay, bye 🫢

πŸ“¦ where this page comes from