---
name: "rpc_clnt_iterate_for_each_xprt"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/rpc_clnt_iterate_for_each_xprt"
---

# rpc\_clnt\_iterate\_for\_each\_xprt(9)

Apply a function to all transports

## 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
