Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
backchannel_rqst.c File Reference
#include <linux/tcp.h>
#include <linux/slab.h>
#include <linux/sunrpc/xprt.h>
#include <linux/export.h>
#include <linux/sunrpc/bc_xprt.h>

Go to the source code of this file.


int xprt_setup_backchannel (struct rpc_xprt *xprt, unsigned int min_reqs)
 EXPORT_SYMBOL_GPL (xprt_setup_backchannel)
void xprt_destroy_backchannel (struct rpc_xprt *xprt, unsigned int max_reqs)
 EXPORT_SYMBOL_GPL (xprt_destroy_backchannel)
struct rpc_rqst * xprt_alloc_bc_request (struct rpc_xprt *xprt)
void xprt_free_bc_request (struct rpc_rqst *req)

Function Documentation

EXPORT_SYMBOL_GPL ( xprt_setup_backchannel  )
EXPORT_SYMBOL_GPL ( xprt_destroy_backchannel  )
struct rpc_rqst* xprt_alloc_bc_request ( struct rpc_xprt *  xprt)

Definition at line 221 of file backchannel_rqst.c.

void xprt_destroy_backchannel ( struct rpc_xprt *  xprt,
unsigned int  max_reqs 

xprt_destroy_backchannel - Destroys the backchannel preallocated structures. : the transport holding the preallocated strucures the maximum number of preallocated structures to destroy

Since these structures may have been allocated by multiple calls to xprt_setup_backchannel, we only destroy up to the maximum number of reqs specified by the caller.

Definition at line 188 of file backchannel_rqst.c.

void xprt_free_bc_request ( struct rpc_rqst *  req)

Definition at line 251 of file backchannel_rqst.c.

int xprt_setup_backchannel ( struct rpc_xprt *  xprt,
unsigned int  min_reqs 

Definition at line 89 of file backchannel_rqst.c.