svc_find_xprt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– svc_find_xprt(9) πŸ’–

okay bestie, this page is from the Kernel API Manual, and it's literally about finding an RPC transport instance. it's giving β€œwhere is that transport at?” energy, no cap. πŸŽ€βœ¨

πŸŽ€ NAME πŸŽ€

svc_find_xprt β€” find an RPC transport instance. that's the whole name, bestie. πŸ’…

✨ SYNOPSIS ✨

struct svc_xprt * svc_find_xprt (struct svc_serv *serv , const char
       *xcl_name , struct net *net , const sa_family_t af , const unsigned
       short port );

🫢 ARGUMENTS 🫢

  • serv β€” pointer to svc_serv to search. yes, the service struct you're searching through. πŸ”
  • xcl_name β€” C string containing transport's class name.
  • net β€” owner net pointer.
  • af β€” Address family of transport's local address.
  • port β€” transport's IP port number. the port, periodt. πŸ’…

πŸ’… DESCRIPTION πŸ’…

so, like, svc_find_xprt returns the transport instance pointer for the endpoint accepting connections/peer traffic from the specified transport class, address family and port. yes, that's the whole quest. πŸ¦‹

and the wildcard part is iconic: specifying 0 for the address family or port is effectively a wild-card, and will result in matching the first transport in the service's list that has a matching class name. so 0 means β€œidc, first match with the same class name wins.” periodt. πŸ’€βœ¨

🌈 SEE ALSO 🌈

the Kernel file is ./net/sunrpc/svc_xprt.c, and these are the icons you should also check out:

mwah πŸ’‹ this page's source/version is ./net/sunrpc, and it's dated October 2026 β€” that's the cute sign-off, bestie. we're done, periodt. 🫢🌸

πŸ“¦ where this page comes from