---
name: "svc_find_xprt"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/svc_find_xprt"
---

# svc\_find\_xprt(9)

find an RPC transport instance

## NAME

svc\_find\_xprt - find an RPC transport instance

## 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

*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

## DESCRIPTION

Return the transport instance pointer for the endpoint accepting connections/peer traffic from the specified transport class, address family and port.

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.

## COPYRIGHT
