Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
clntxdr.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 NLM_cookie_sz   (1+(NLM_MAXCOOKIELEN>>2))
 
#define NLM_caller_sz   (1+(NLMCLNT_OHSIZE>>2))
 
#define NLM_owner_sz   (1+(NLMCLNT_OHSIZE>>2))
 
#define NLM_fhandle_sz   (1+(NFS2_FHSIZE>>2))
 
#define NLM_lock_sz   (3+NLM_caller_sz+NLM_owner_sz+NLM_fhandle_sz)
 
#define NLM_holder_sz   (4+NLM_owner_sz)
 
#define NLM_testargs_sz   (NLM_cookie_sz+1+NLM_lock_sz)
 
#define NLM_lockargs_sz   (NLM_cookie_sz+4+NLM_lock_sz)
 
#define NLM_cancargs_sz   (NLM_cookie_sz+2+NLM_lock_sz)
 
#define NLM_unlockargs_sz   (NLM_cookie_sz+NLM_lock_sz)
 
#define NLM_testres_sz   (NLM_cookie_sz+1+NLM_holder_sz)
 
#define NLM_res_sz   (NLM_cookie_sz+1)
 
#define NLM_norep_sz   (0)
 
#define nlm_xdr_dec_norep   NULL
 
#define PROC(proc, argtype, restype)
 

Variables

struct rpc_program nlm_program
 

Macro Definition Documentation

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

Definition at line 29 of file clntxdr.c.

#define NLM_cancargs_sz   (NLM_cookie_sz+2+NLM_lock_sz)

Definition at line 37 of file clntxdr.c.

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

Definition at line 28 of file clntxdr.c.

#define NLM_fhandle_sz   (1+(NFS2_FHSIZE>>2))

Definition at line 31 of file clntxdr.c.

#define NLM_holder_sz   (4+NLM_owner_sz)

Definition at line 33 of file clntxdr.c.

#define NLM_lock_sz   (3+NLM_caller_sz+NLM_owner_sz+NLM_fhandle_sz)

Definition at line 32 of file clntxdr.c.

#define NLM_lockargs_sz   (NLM_cookie_sz+4+NLM_lock_sz)

Definition at line 36 of file clntxdr.c.

#define NLM_norep_sz   (0)

Definition at line 42 of file clntxdr.c.

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

Definition at line 30 of file clntxdr.c.

#define NLM_res_sz   (NLM_cookie_sz+1)

Definition at line 41 of file clntxdr.c.

#define NLM_testargs_sz   (NLM_cookie_sz+1+NLM_lock_sz)

Definition at line 35 of file clntxdr.c.

#define NLM_testres_sz   (NLM_cookie_sz+1+NLM_holder_sz)

Definition at line 40 of file clntxdr.c.

#define NLM_unlockargs_sz   (NLM_cookie_sz+NLM_lock_sz)

Definition at line 38 of file clntxdr.c.

#define nlm_xdr_dec_norep   NULL

Definition at line 568 of file clntxdr.c.

#define NLMDBG_FACILITY   NLMDBG_XDR

Definition at line 18 of file clntxdr.c.

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

Definition at line 570 of file clntxdr.c.

Variable Documentation

struct rpc_program nlm_program
Initial value:
= {
.name = "lockd",
.number = NLM_PROGRAM,
.nrvers = ARRAY_SIZE(nlm_versions),
.version = nlm_versions,
.stats = &nlm_rpc_stats,
}

Definition at line 621 of file clntxdr.c.