Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
xdr.h File Reference
#include <linux/fs.h>
#include <linux/nfs.h>
#include <linux/sunrpc/xdr.h>

Go to the source code of this file.

Data Structures

struct  nsm_private
 
struct  nlm_lock
 
struct  nlm_cookie
 
struct  nlm_args
 
struct  nlm_res
 
struct  nlm_reboot
 

Macros

#define SM_MAXSTRLEN   1024
 
#define SM_PRIV_SIZE   16
 
#define NLM_MAXCOOKIELEN   32
 
#define NLM_MAXSTRLEN   1024
 
#define nlm_granted   cpu_to_be32(NLM_LCK_GRANTED)
 
#define nlm_lck_denied   cpu_to_be32(NLM_LCK_DENIED)
 
#define nlm_lck_denied_nolocks   cpu_to_be32(NLM_LCK_DENIED_NOLOCKS)
 
#define nlm_lck_blocked   cpu_to_be32(NLM_LCK_BLOCKED)
 
#define nlm_lck_denied_grace_period   cpu_to_be32(NLM_LCK_DENIED_GRACE_PERIOD)
 
#define nlm_drop_reply   cpu_to_be32(30000)
 
#define NLMSVC_XDRSIZE   sizeof(struct nlm_args)
 

Typedefs

typedef struct nlm_args nlm_args
 

Functions

int nlmsvc_decode_testargs (struct svc_rqst *, __be32 *, struct nlm_args *)
 
int nlmsvc_encode_testres (struct svc_rqst *, __be32 *, struct nlm_res *)
 
int nlmsvc_decode_lockargs (struct svc_rqst *, __be32 *, struct nlm_args *)
 
int nlmsvc_decode_cancargs (struct svc_rqst *, __be32 *, struct nlm_args *)
 
int nlmsvc_decode_unlockargs (struct svc_rqst *, __be32 *, struct nlm_args *)
 
int nlmsvc_encode_res (struct svc_rqst *, __be32 *, struct nlm_res *)
 
int nlmsvc_decode_res (struct svc_rqst *, __be32 *, struct nlm_res *)
 
int nlmsvc_encode_void (struct svc_rqst *, __be32 *, void *)
 
int nlmsvc_decode_void (struct svc_rqst *, __be32 *, void *)
 
int nlmsvc_decode_shareargs (struct svc_rqst *, __be32 *, struct nlm_args *)
 
int nlmsvc_encode_shareres (struct svc_rqst *, __be32 *, struct nlm_res *)
 
int nlmsvc_decode_notify (struct svc_rqst *, __be32 *, struct nlm_args *)
 
int nlmsvc_decode_reboot (struct svc_rqst *, __be32 *, struct nlm_reboot *)
 

Macro Definition Documentation

#define nlm_drop_reply   cpu_to_be32(30000)

Definition at line 34 of file xdr.h.

#define nlm_granted   cpu_to_be32(NLM_LCK_GRANTED)

Definition at line 28 of file xdr.h.

#define nlm_lck_blocked   cpu_to_be32(NLM_LCK_BLOCKED)

Definition at line 31 of file xdr.h.

#define nlm_lck_denied   cpu_to_be32(NLM_LCK_DENIED)

Definition at line 29 of file xdr.h.

#define nlm_lck_denied_grace_period   cpu_to_be32(NLM_LCK_DENIED_GRACE_PERIOD)

Definition at line 32 of file xdr.h.

#define nlm_lck_denied_nolocks   cpu_to_be32(NLM_LCK_DENIED_NOLOCKS)

Definition at line 30 of file xdr.h.

#define NLM_MAXCOOKIELEN   32

Definition at line 25 of file xdr.h.

#define NLM_MAXSTRLEN   1024

Definition at line 26 of file xdr.h.

#define NLMSVC_XDRSIZE   sizeof(struct nlm_args)

Definition at line 96 of file xdr.h.

#define SM_MAXSTRLEN   1024

Definition at line 16 of file xdr.h.

#define SM_PRIV_SIZE   16

Definition at line 17 of file xdr.h.

Typedef Documentation

Definition at line 72 of file xdr.h.

Function Documentation

int nlmsvc_decode_cancargs ( struct svc_rqst ,
__be32 ,
struct nlm_args  
)

Definition at line 236 of file xdr.c.

int nlmsvc_decode_lockargs ( struct svc_rqst ,
__be32 ,
struct nlm_args  
)

Definition at line 216 of file xdr.c.

int nlmsvc_decode_notify ( struct svc_rqst ,
__be32 ,
struct nlm_args  
)

Definition at line 302 of file xdr.c.

int nlmsvc_decode_reboot ( struct svc_rqst ,
__be32 ,
struct nlm_reboot  
)

Definition at line 314 of file xdr.c.

int nlmsvc_decode_res ( struct svc_rqst ,
__be32 ,
struct nlm_res  
)

Definition at line 325 of file xdr.c.

int nlmsvc_decode_shareargs ( struct svc_rqst ,
__be32 ,
struct nlm_args  
)

Definition at line 262 of file xdr.c.

int nlmsvc_decode_testargs ( struct svc_rqst ,
__be32 ,
struct nlm_args  
)

Definition at line 191 of file xdr.c.

int nlmsvc_decode_unlockargs ( struct svc_rqst ,
__be32 ,
struct nlm_args  
)

Definition at line 252 of file xdr.c.

int nlmsvc_decode_void ( struct svc_rqst ,
__be32 ,
void  
)

Definition at line 334 of file xdr.c.

int nlmsvc_encode_res ( struct svc_rqst ,
__be32 ,
struct nlm_res  
)

Definition at line 293 of file xdr.c.

int nlmsvc_encode_shareres ( struct svc_rqst ,
__be32 ,
struct nlm_res  
)

Definition at line 283 of file xdr.c.

int nlmsvc_encode_testres ( struct svc_rqst ,
__be32 ,
struct nlm_res  
)

Definition at line 208 of file xdr.c.

int nlmsvc_encode_void ( struct svc_rqst ,
__be32 ,
void  
)

Definition at line 340 of file xdr.c.