---
name: "rpc_clnt_add_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/rpc_clnt_add_xprt"
---

# rpc\_clnt\_add\_xprt(9)

Add a new transport to a rpc\_clnt

## NAME

rpc\_clnt\_add\_xprt - Add a new transport to a rpc\_clnt

## SYNOPSIS

**int rpc\_clnt\_add\_xprt(struct rpc\_clnt \*** *clnt***, struct xprt\_create \*** *xprtargs***, int (\****setup***) (struct rpc\_clnt \*, struct rpc\_xprt\_switch \*, struct rpc\_xprt \*, void \*), void \*** *data***);**

## ARGUMENTS

*clnt*

pointer to struct rpc\_clnt

*xprtargs*

pointer to struct xprt\_create

*setup*

callback to test and/or set up the connection

*data*

pointer to setup function data

## DESCRIPTION

Creates a new transport using the parameters set in args and adds it to clnt. If ping is set, then test that connectivity succeeds before adding the new transport.

## COPYRIGHT
