RPC_CLNT_ITERATE_FOR(9)

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

clnt
    pointer to client

fn
    function to apply

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.

COPYRIGHT