Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
clnt4xdr.c File Reference
#include <linux/types.h>
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/stats.h>
#include <linux/lockd/lockd.h>

Go to the source code of this file.

Macros

#define NLMDBG_FACILITY   NLMDBG_XDR
 
#define NLM4_void_sz   (0)
 
#define NLM4_cookie_sz   (1+(NLM_MAXCOOKIELEN>>2))
 
#define NLM4_caller_sz   (1+(NLMCLNT_OHSIZE>>2))
 
#define NLM4_owner_sz   (1+(NLMCLNT_OHSIZE>>2))
 
#define NLM4_fhandle_sz   (1+(NFS3_FHSIZE>>2))
 
#define NLM4_lock_sz   (5+NLM4_caller_sz+NLM4_owner_sz+NLM4_fhandle_sz)
 
#define NLM4_holder_sz   (6+NLM4_owner_sz)
 
#define NLM4_testargs_sz   (NLM4_cookie_sz+1+NLM4_lock_sz)
 
#define NLM4_lockargs_sz   (NLM4_cookie_sz+4+NLM4_lock_sz)
 
#define NLM4_cancargs_sz   (NLM4_cookie_sz+2+NLM4_lock_sz)
 
#define NLM4_unlockargs_sz   (NLM4_cookie_sz+NLM4_lock_sz)
 
#define NLM4_testres_sz   (NLM4_cookie_sz+1+NLM4_holder_sz)
 
#define NLM4_res_sz   (NLM4_cookie_sz+1)
 
#define NLM4_norep_sz   (0)
 
#define nlm4_xdr_dec_norep   NULL
 
#define PROC(proc, argtype, restype)
 

Variables

struct rpc_version nlm_version4
 

Macro Definition Documentation

#define NLM4_caller_sz   (1+(NLMCLNT_OHSIZE>>2))

Definition at line 33 of file clnt4xdr.c.

#define NLM4_cancargs_sz   (NLM4_cookie_sz+2+NLM4_lock_sz)

Definition at line 41 of file clnt4xdr.c.

#define NLM4_cookie_sz   (1+(NLM_MAXCOOKIELEN>>2))

Definition at line 32 of file clnt4xdr.c.

#define NLM4_fhandle_sz   (1+(NFS3_FHSIZE>>2))

Definition at line 35 of file clnt4xdr.c.

#define NLM4_holder_sz   (6+NLM4_owner_sz)

Definition at line 37 of file clnt4xdr.c.

#define NLM4_lock_sz   (5+NLM4_caller_sz+NLM4_owner_sz+NLM4_fhandle_sz)

Definition at line 36 of file clnt4xdr.c.

#define NLM4_lockargs_sz   (NLM4_cookie_sz+4+NLM4_lock_sz)

Definition at line 40 of file clnt4xdr.c.

#define NLM4_norep_sz   (0)

Definition at line 46 of file clnt4xdr.c.

#define NLM4_owner_sz   (1+(NLMCLNT_OHSIZE>>2))

Definition at line 34 of file clnt4xdr.c.

#define NLM4_res_sz   (NLM4_cookie_sz+1)

Definition at line 45 of file clnt4xdr.c.

#define NLM4_testargs_sz   (NLM4_cookie_sz+1+NLM4_lock_sz)

Definition at line 39 of file clnt4xdr.c.

#define NLM4_testres_sz   (NLM4_cookie_sz+1+NLM4_holder_sz)

Definition at line 44 of file clnt4xdr.c.

#define NLM4_unlockargs_sz   (NLM4_cookie_sz+NLM4_lock_sz)

Definition at line 42 of file clnt4xdr.c.

#define NLM4_void_sz   (0)

Definition at line 31 of file clnt4xdr.c.

#define nlm4_xdr_dec_norep   NULL

Definition at line 570 of file clnt4xdr.c.

#define NLMDBG_FACILITY   NLMDBG_XDR

Definition at line 17 of file clnt4xdr.c.

#define PROC (   proc,
  argtype,
  restype 
)
Value:
[NLMPROC_##proc] = { \
.p_proc = NLMPROC_##proc, \
.p_encode = (kxdreproc_t)nlm4_xdr_enc_##argtype, \
.p_decode = (kxdrdproc_t)nlm4_xdr_dec_##restype, \
.p_arglen = NLM4_##argtype##_sz, \
.p_replen = NLM4_##restype##_sz, \
.p_statidx = NLMPROC_##proc, \
.p_name = #proc, \
}

Definition at line 572 of file clnt4xdr.c.

Variable Documentation

struct rpc_version nlm_version4
Initial value:
= {
.number = 4,
.nrprocs = ARRAY_SIZE(nlm4_procedures),
.procs = nlm4_procedures,
}

Definition at line 601 of file clnt4xdr.c.