rpc_clnt_add_xprt(9)

rpc_clnt_add_xprt9

Add a new transport to a rpc_clnt

Usage

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);

Arguments

clnt

pointer to struct rpc_clnt

xprtargs

pointer to struct xprt_create

setup

callback to test and/or set up the connection

data

pointer to setup function data

Overview

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.

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