Name
rpc_clnt_iterate_for_each_xprt —
Apply a function to all transports
Synopsis
int rpc_clnt_iterate_for_each_xprt ( | struct rpc_clnt * clnt, |
| int (*fn)
( struct rpc_clnt *, struct rpc_xprt *, void *) , |
| void * data) ; |
Arguments
struct rpc_clnt * clnt
pointer to client
int (*)(struct rpc_clnt *, struct rpc_xprt *, void *) fn
function to apply
void * data
void pointer to function data
Description
Iterates through the list of RPC transports currently attached to the
client and applies the function fn(clnt, xprt, data).
On error, the iteration stops, and the function returns the error value.