Scroll to navigation

RPC_SWITCH_CLIENT_TR(9) Linux Networking RPC_SWITCH_CLIENT_TR(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

struct rpc_clnt * clnt

pointer to a struct rpc_clnt

struct xprt_create * args

pointer to the new transport arguments

const struct rpc_timeout * 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

July 2017 Kernel Hackers Manual 4.12