svc_find_xprt(9)
π 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 tosvc_servto 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:
svc_reg_xprt_class(9)svc_unreg_xprt_class(9)svc_print_xprts(9)svc_xprt_deferred_close(9)svc_xprt_received(9)svc_xprt_create_from_sa(9)svc_xprt_create(9)svc_print_addr(9)svc_xprt_enqueue(9)svc_reserve(9)svc_wake_up(9)svc_recv(9)svc_send(9)svc_xprt_close(9)svc_xprt_destroy_all(9)svc_find_listener(9)svc_xprt_names(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms