Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
callback_xdr.c File Reference
#include <linux/kernel.h>
#include <linux/sunrpc/svc.h>
#include <linux/nfs4.h>
#include <linux/nfs_fs.h>
#include <linux/ratelimit.h>
#include <linux/printk.h>
#include <linux/slab.h>
#include <linux/sunrpc/bc_xprt.h>
#include "nfs4_fs.h"
#include "callback.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  callback_op
 

Macros

#define CB_OP_TAGLEN_MAXSZ   (512)
 
#define CB_OP_HDR_RES_MAXSZ   (2 + CB_OP_TAGLEN_MAXSZ)
 
#define CB_OP_GETATTR_BITMAP_MAXSZ   (4)
 
#define CB_OP_GETATTR_RES_MAXSZ
 
#define CB_OP_RECALL_RES_MAXSZ   (CB_OP_HDR_RES_MAXSZ)
 
#define NFSDBG_FACILITY   NFSDBG_CALLBACK
 
#define NFS4ERR_RESOURCE_HDR   11050
 
#define CB_SUPPORTED_ATTR0   (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE)
 
#define CB_SUPPORTED_ATTR1   (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY)
 

Typedefs

typedef __be32(* callback_process_op_t )(void *, void *, struct cb_process_state *)
 
typedef __be32(* callback_decode_arg_t )(struct svc_rqst *, struct xdr_stream *, void *)
 
typedef __be32(* callback_encode_res_t )(struct svc_rqst *, struct xdr_stream *, void *)
 

Variables

struct svc_version nfs4_callback_version1
 
struct svc_version nfs4_callback_version4
 

Macro Definition Documentation

#define CB_OP_GETATTR_BITMAP_MAXSZ   (4)

Definition at line 22 of file callback_xdr.c.

#define CB_OP_GETATTR_RES_MAXSZ
Value:
CB_OP_GETATTR_BITMAP_MAXSZ + \
2 + 2 + 3 + 3)

Definition at line 23 of file callback_xdr.c.

#define CB_OP_HDR_RES_MAXSZ   (2 + CB_OP_TAGLEN_MAXSZ)

Definition at line 21 of file callback_xdr.c.

#define CB_OP_RECALL_RES_MAXSZ   (CB_OP_HDR_RES_MAXSZ)

Definition at line 26 of file callback_xdr.c.

#define CB_OP_TAGLEN_MAXSZ   (512)

Definition at line 20 of file callback_xdr.c.

#define CB_SUPPORTED_ATTR0   (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE)

Definition at line 540 of file callback_xdr.c.

#define CB_SUPPORTED_ATTR1   (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY)

Definition at line 541 of file callback_xdr.c.

#define NFS4ERR_RESOURCE_HDR   11050

Definition at line 40 of file callback_xdr.c.

#define NFSDBG_FACILITY   NFSDBG_CALLBACK

Definition at line 37 of file callback_xdr.c.

Typedef Documentation

typedef __be32(* callback_decode_arg_t)(struct svc_rqst *, struct xdr_stream *, void *)

Definition at line 44 of file callback_xdr.c.

typedef __be32(* callback_encode_res_t)(struct svc_rqst *, struct xdr_stream *, void *)

Definition at line 45 of file callback_xdr.c.

typedef __be32(* callback_process_op_t)(void *, void *, struct cb_process_state *)

Definition at line 42 of file callback_xdr.c.

Variable Documentation

struct svc_version nfs4_callback_version1
Initial value:
= {
.vs_vers = 1,
.vs_nproc = ARRAY_SIZE(nfs4_callback_procedures1),
.vs_proc = nfs4_callback_procedures1,
.vs_xdrsize = NFS4_CALLBACK_XDRSIZE,
.vs_dispatch = NULL,
.vs_hidden = 1,
}

Definition at line 982 of file callback_xdr.c.

struct svc_version nfs4_callback_version4
Initial value:
= {
.vs_vers = 4,
.vs_nproc = ARRAY_SIZE(nfs4_callback_procedures1),
.vs_proc = nfs4_callback_procedures1,
.vs_xdrsize = NFS4_CALLBACK_XDRSIZE,
.vs_dispatch = NULL,
.vs_hidden = 1,
}

Definition at line 991 of file callback_xdr.c.