'\" t .\" Title: rpc_clnt_setup_test_and_add_xprt .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "RPC_CLNT_SETUP_TEST_" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_setup_test_and_add_xprt \- .SH "SYNOPSIS" .HP \w'int\ rpc_clnt_setup_test_and_add_xprt('u .BI "int rpc_clnt_setup_test_and_add_xprt(struct\ rpc_clnt\ *\ " "clnt" ", struct\ rpc_xprt_switch\ *\ " "xps" ", struct\ rpc_xprt\ *\ " "xprt" ", void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIclnt\fR .RS 4 struct rpc_clnt to get the new transport .RE .PP \fIxps\fR .RS 4 the rpc_xprt_switch to hold the new transport .RE .PP \fIxprt\fR .RS 4 the rpc_xprt to test .RE .PP \fIdata\fR .RS 4 a struct rpc_add_xprt_test pointer that holds the test function and test function call data .RE .SH "DESCRIPTION" .PP .PP This is an rpc_clnt_add_xprt \fBsetup\fR function which returns 1 so: 1) caller of the test function must dereference the rpc_xprt_switch and the rpc_xprt\&. 2) test function must call rpc_xprt_switch_add_xprt, usually in the rpc_call_done routine\&. .PP Upon success (return of 1), the test function adds the new transport to the rpc_clnt xprt switch .SH "COPYRIGHT" .br