---
name: "rpc_switch_client_transport"
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_switch_client_transport"
---

# rpc\_switch\_client\_transport(9)

## NAME

rpc\_switch\_client\_transport -

## SYNOPSIS

**int rpc\_switch\_client\_transport(struct rpc\_clnt \*** *clnt***, struct xprt\_create \*** *args***, const struct rpc\_timeout \*** *timeout***);**

## ARGUMENTS

*clnt*

pointer to a struct rpc\_clnt

*args*

pointer to the new transport arguments

*timeout*

pointer to the new timeout parameters

## DESCRIPTION

This function allows the caller to switch the RPC transport for the rpc\_clnt structure 'clnt' to allow it to connect to a mirrored NFS server, for instance. It assumes that the caller has ensured that there are no active RPC tasks by using some form of locking.

Returns zero if “clnt” is now using the new xprt. Otherwise a negative errno is returned, and “clnt” continues to use the old xprt.

## COPYRIGHT
