'\" t .\" Title: rpc_clnt_iterate_for_each_xprt .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "RPC_CLNT_ITERATE_FOR" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" rpc_clnt_iterate_for_each_xprt \- Apply a function to all transports .SH "SYNOPSIS" .HP \w'int\ rpc_clnt_iterate_for_each_xprt('u .BI "int rpc_clnt_iterate_for_each_xprt(struct\ rpc_clnt\ *\ " "clnt" ", int\ (*" "fn" ")\ (struct\ rpc_clnt\ *,\ struct\ rpc_xprt\ *,\ void\ *), void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIclnt\fR .RS 4 pointer to client .RE .PP \fIfn\fR .RS 4 function to apply .RE .PP \fIdata\fR .RS 4 void pointer to function data .RE .SH "DESCRIPTION" .PP Iterates through the list of RPC transports currently attached to the client and applies the function fn(clnt, xprt, data)\&. .PP On error, the iteration stops, and the function returns the error value\&. .SH "COPYRIGHT" .br