1RPC_SWITCH_CLIENT_TR(9) Linux Networking RPC_SWITCH_CLIENT_TR(9)
2
3
4
6 rpc_switch_client_transport -
7
9 int rpc_switch_client_transport(struct rpc_clnt * clnt,
10 struct xprt_create * args,
11 const struct rpc_timeout * timeout);
12
14 clnt
15 pointer to a struct rpc_clnt
16
17 args
18 pointer to the new transport arguments
19
20 timeout
21 pointer to the new timeout parameters
22
24 This function allows the caller to switch the RPC transport for the
25 rpc_clnt structure 'clnt' to allow it to connect to a mirrored NFS
26 server, for instance. It assumes that the caller has ensured that there
27 are no active RPC tasks by using some form of locking.
28
29 Returns zero if “clnt” is now using the new xprt. Otherwise a negative
30 errno is returned, and “clnt” continues to use the old xprt.
31
33Kernel Hackers Manual 3.10 June 2019 RPC_SWITCH_CLIENT_TR(9)