rpc_clnt_iterate_for_each_xprt(9)

rpc_clnt_iterate_for_each_xprt9

Apply a function to all transports

Usage

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

Overview

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.