'\" t .\" Title: rpc_clnt_add_xprt .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "RPC_CLNT_ADD_XPRT" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "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_add_xprt \- Add a new transport to a rpc_clnt .SH "SYNOPSIS" .HP \w'int\ rpc_clnt_add_xprt('u .BI "int rpc_clnt_add_xprt(struct\ rpc_clnt\ *\ " "clnt" ", struct\ xprt_create\ *\ " "xprtargs" ", int\ (*" "setup" ")\ (struct\ rpc_clnt\ *,\ struct\ rpc_xprt_switch\ *,\ struct\ rpc_xprt\ *,\ void\ *), void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIstruct rpc_clnt * clnt\fR .RS 4 pointer to struct rpc_clnt .RE .PP \fIstruct xprt_create * xprtargs\fR .RS 4 pointer to struct xprt_create .RE .PP \fIint (*)(struct rpc_clnt *, struct rpc_xprt_switch *, struct rpc_xprt *, void *) setup\fR .RS 4 callback to test and/or set up the connection .RE .PP \fIvoid * data\fR .RS 4 pointer to setup function data .RE .SH "DESCRIPTION" .PP Creates a new transport using the parameters set in args and adds it to clnt\&. If ping is set, then test that connectivity succeeds before adding the new transport\&. .SH "COPYRIGHT" .br