rpc_max_bc_payload (9) Linux Manual Page
rpc_max_bc_payload – Get maximum backchannel payload size, in bytes Synopsis size_t rpc_max_bc_payload(struct rpc_clnt *clnt); Arguments clnt RPC client to query Copyright
rpc_max_bc_payload – Get maximum backchannel payload size, in bytes Synopsis size_t rpc_max_bc_payload(struct rpc_clnt *clnt); Arguments clnt RPC client to query Copyright
rpc_malloc – allocate RPC buffer resources Synopsis int rpc_malloc(struct rpc_task *task); Arguments task RPC task Description A single memory region is allocated, which is split between the RPC call and RPC reply that this task is being used for. When this RPC is retired, the memory is released by calling rpc_free. To prevent rpciod from…
rpc_localaddr – discover local endpoint address for an RPC client Synopsis int rpc_localaddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t buflen); Arguments clnt RPC client structure buf target buffer buflen size of target buffer, in bytes Description Returns zero and fills in “buf” and “buflen” if successful; otherwise, a negative errno is returned. This works even…
rpc_init_pipe_dir_object – initialise a struct rpc_pipe_dir_object Synopsis void rpc_init_pipe_dir_object(struct rpc_pipe_dir_object *pdo, const struct rpc_pipe_dir_object_ops *pdo_ops, void *pdo_data); Arguments pdo pointer to struct rpc_pipe_dir_object pdo_ops pointer to const struct rpc_pipe_dir_object_ops pdo_data pointer to caller-defined data Copyright
rpc_init_pipe_dir_head – initialise a struct rpc_pipe_dir_head Synopsis void rpc_init_pipe_dir_head(struct rpc_pipe_dir_head *pdh); Arguments pdh pointer to struct rpc_pipe_dir_head Copyright
rpc_get_timeout – Get timeout for transport in units of HZ Synopsis unsigned long rpc_get_timeout(struct rpc_clnt *clnt); Arguments clnt RPC client to query Copyright
rpc_free_iostats – release an rpc_iostats structure Synopsis void rpc_free_iostats(struct rpc_iostats *stats); Arguments stats doomed rpc_iostats structure Copyright
rpc_free – free RPC buffer resources allocated via rpc_malloc Synopsis void rpc_free(struct rpc_task *task); Arguments task RPC task Copyright
rpc_force_rebind – force transport to check that remote port is unchanged Synopsis void rpc_force_rebind(struct rpc_clnt *clnt); Arguments clnt client to rebind Copyright
rpc_find_or_alloc_pipe_dir_object – Synopsis struct rpc_pipe_dir_object *rpc_find_or_alloc_pipe_dir_object(struct net *net, struct rpc_pipe_dir_head *pdh, int (*match)(struct rpc_pipe_dir_object *, void *), struct rpc_pipe_dir_object *(*alloc)(void *), void *data); Arguments net pointer to struct net pdh pointer to struct rpc_pipe_dir_head match match struct rpc_pipe_dir_object to data alloc allocate a new struct rpc_pipe_dir_object data user defined data for match and alloc Copyright
rpc_create – create an RPC client and transport with one call Synopsis struct rpc_clnt *rpc_create(struct rpc_create_args *args); Arguments args rpc_clnt create argument structure Description Creates and initializes an RPC transport and an RPC client. It can ping the server in order to determine if it is up, and to see if it supports this program…
rpc_count_iostats_metrics – tally up per-task stats Synopsis void rpc_count_iostats_metrics(const struct rpc_task *task, struct rpc_iostats *op_metrics); Arguments task completed rpc_task op_metrics stat structure for OP that will accumulate stats from task Copyright
rpc_count_iostats – tally up per-task stats Synopsis void rpc_count_iostats(const struct rpc_task *task, struct rpc_iostats *stats); Arguments task completed rpc_task stats array of stat structures Description Uses the statidx from task Copyright
rpc_clone_client_set_auth – Clone an RPC client structure and set its auth Synopsis struct rpc_clnt *rpc_clone_client_set_auth(struct rpc_clnt *clnt, rpc_authflavor_t flavor); Arguments clnt RPC client whose parameters are copied flavor security flavor for new client Description Returns a fresh RPC client or an ERR_PTR. Copyright
rpc_clone_client – Clone an RPC client structure Synopsis struct rpc_clnt *rpc_clone_client(struct rpc_clnt *clnt); Arguments clnt RPC client whose parameters are copied Description Returns a fresh RPC client or an ERR_PTR. Copyright
rpc_clnt_test_and_add_xprt – Test and add a new transport to a rpc_clnt Synopsis int rpc_clnt_test_and_add_xprt(struct rpc_clnt *clnt, struct rpc_xprt_switch *xps, struct rpc_xprt *xprt, void *dummy); Arguments clnt pointer to struct rpc_clnt xps pointer to struct rpc_xprt_switch, xprt pointer struct rpc_xprt dummy unused Copyright
rpc_clnt_setup_test_and_add_xprt – Synopsis 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 Description This is…
rpc_clnt_iterate_for_each_xprt – Apply a function to all transports Synopsis int rpc_clnt_iterate_for_each_xprt(struct rpc_clnt *clnt, int (*fn)(struct rpc_clnt *, struct rpc_xprt *, void *), void *data); Arguments clnt pointer to client fn function to apply data void pointer to function data Description Iterates through the list of RPC transports currently attached to the client and applies the…
rpc_clnt_add_xprt – Add a new transport to a rpc_clnt Synopsis 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…
rpc_call_sync – Perform a synchronous RPC call Synopsis int rpc_call_sync(struct rpc_clnt *clnt, const struct rpc_message *msg, int flags); Arguments clnt pointer to RPC client msg RPC call parameters flags RPC call flags Copyright