---
name: "rpc_clnt_setup_test_and_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_setup_test_and_add_xprt"
---

# rpc\_clnt\_setup\_test\_and\_add\_xprt(9)

## NAME

rpc\_clnt\_setup\_test\_and\_add\_xprt -

## SYNOPSIS

**int rpc\_clnt\_setup\_test\_and\_add\_xprt(struct rpc\_clnt \*** *clnt***, struct rpc\_xprt\_switch \*** *xps***, struct rpc\_xprt \*** *xprt***, void \*** *data***);**

## ARGUMENTS

*clnt*

struct rpc\_clnt to get the new transport

*xps*

the rpc\_xprt\_switch to hold the new transport

*xprt*

the rpc\_xprt to test

*data*

a struct rpc\_add\_xprt\_test pointer that holds the test function and test function call data

## DESCRIPTION

This is an rpc\_clnt\_add\_xprt **setup** function which returns 1 so: 1) caller of the test function must dereference the rpc\_xprt\_switch and the rpc\_xprt. 2) test function must call rpc\_xprt\_switch\_add\_xprt, usually in the rpc\_call\_done routine.

Upon success (return of 1), the test function adds the new transport to the rpc\_clnt xprt switch

## COPYRIGHT
