rpc_clnt_setup_test_and_add_xprt(9)

rpc_clnt_setup_test_and_add_xprt9

Usage

int rpc_clnt_setup_test_and_add_xprt(struct rpc_clnt * clnt, struct rpc_xprt_switch * xps, struct rpc_xprt * xprt, void * data);

Arguments

clnt

struct rpc_clnt to get the new transport

xps

the rpc_xprt_switch to hold the new transport

xprt

the rpc_xprt to test

data

a struct rpc_add_xprt_test pointer that holds the test function and test function call data

Overview

This is an rpc_clnt_add_xprt setup 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.

Upon success (return of 1), the test function adds the new transport to the rpc_clnt xprt switch

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