Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
xdr4.h File Reference
#include "state.h"
#include "nfsd.h"

Go to the source code of this file.

Data Structures

struct  nfsd4_compound_state
 
struct  nfsd4_change_info
 
struct  nfsd4_access
 
struct  nfsd4_close
 
struct  nfsd4_commit
 
struct  nfsd4_create
 
struct  nfsd4_delegreturn
 
struct  nfsd4_getattr
 
struct  nfsd4_link
 
struct  nfsd4_lock_denied
 
struct  nfsd4_lock
 
struct  nfsd4_lockt
 
struct  nfsd4_locku
 
struct  nfsd4_lookup
 
struct  nfsd4_putfh
 
struct  nfsd4_open
 
struct  nfsd4_open_confirm
 
struct  nfsd4_open_downgrade
 
struct  nfsd4_read
 
struct  nfsd4_readdir
 
struct  nfsd4_release_lockowner
 
struct  nfsd4_readlink
 
struct  nfsd4_remove
 
struct  nfsd4_rename
 
struct  nfsd4_secinfo
 
struct  nfsd4_secinfo_no_name
 
struct  nfsd4_setattr
 
struct  nfsd4_setclientid
 
struct  nfsd4_setclientid_confirm
 
struct  nfsd4_saved_compoundargs
 
struct  nfsd4_test_stateid_id
 
struct  nfsd4_test_stateid
 
struct  nfsd4_free_stateid
 
struct  nfsd4_verify
 
struct  nfsd4_write
 
struct  nfsd4_exchange_id
 
struct  nfsd4_sequence
 
struct  nfsd4_destroy_session
 
struct  nfsd4_destroy_clientid
 
struct  nfsd4_reclaim_complete
 
struct  nfsd4_op
 
struct  nfsd4_compoundargs
 
struct  nfsd4_compoundargs::tmpbuf
 
struct  nfsd4_compoundres
 

Macros

#define NFSD4_MAX_TAGLEN   128
 
#define XDR_LEN(n)   (((n) + 3) & ~3)
 
#define CURRENT_STATE_ID_FLAG   (1<<0)
 
#define SAVED_STATE_ID_FLAG   (1<<1)
 
#define SET_STATE_ID(c, f)   ((c)->sid_flags |= (f))
 
#define HAS_STATE_ID(c, f)   ((c)->sid_flags & (f))
 
#define CLEAR_STATE_ID(c, f)   ((c)->sid_flags &= ~(f))
 
#define cr_linklen   u.link.namelen
 
#define cr_linkname   u.link.name
 
#define cr_specdata1   u.dev.specdata1
 
#define cr_specdata2   u.dev.specdata2
 
#define lk_new_open_seqid   v.new.open_seqid
 
#define lk_new_open_stateid   v.new.open_stateid
 
#define lk_new_lock_seqid   v.new.lock_seqid
 
#define lk_new_clientid   v.new.clientid
 
#define lk_new_owner   v.new.owner
 
#define lk_old_lock_stateid   v.old.lock_stateid
 
#define lk_old_lock_seqid   v.old.lock_seqid
 
#define lk_rflags   u.ok.rflags
 
#define lk_resp_stateid   u.ok.stateid
 
#define lk_denied   u.denied
 
#define op_iattr   iattr
 
#define NFS4_SVC_XDRSIZE   sizeof(struct nfsd4_compoundargs)
 

Functions

bool nfsd4_cache_this_op (struct nfsd4_op *)
 
int nfs4svc_encode_voidres (struct svc_rqst *, __be32 *, void *)
 
int nfs4svc_decode_compoundargs (struct svc_rqst *, __be32 *, struct nfsd4_compoundargs *)
 
int nfs4svc_encode_compoundres (struct svc_rqst *, __be32 *, struct nfsd4_compoundres *)
 
__be32 nfsd4_check_resp_size (struct nfsd4_compoundres *, u32)
 
void nfsd4_encode_operation (struct nfsd4_compoundres *, struct nfsd4_op *)
 
void nfsd4_encode_replay (struct nfsd4_compoundres *resp, struct nfsd4_op *op)
 
__be32 nfsd4_encode_fattr (struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, __be32 *buffer, int *countp, u32 *bmval, struct svc_rqst *, int ignore_crossmnt)
 
__be32 nfsd4_setclientid (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_setclientid *setclid)
 
__be32 nfsd4_setclientid_confirm (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_setclientid_confirm *setclientid_confirm)
 
void nfsd4_store_cache_entry (struct nfsd4_compoundres *resp)
 
__be32 nfsd4_replay_cache_entry (struct nfsd4_compoundres *resp, struct nfsd4_sequence *seq)
 
__be32 nfsd4_exchange_id (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_exchange_id *)
 
__be32 nfsd4_bind_conn_to_session (struct svc_rqst *, struct nfsd4_compound_state *, struct nfsd4_bind_conn_to_session *)
 
__be32 nfsd4_create_session (struct svc_rqst *, struct nfsd4_compound_state *, struct nfsd4_create_session *)
 
__be32 nfsd4_sequence (struct svc_rqst *, struct nfsd4_compound_state *, struct nfsd4_sequence *)
 
__be32 nfsd4_destroy_session (struct svc_rqst *, struct nfsd4_compound_state *, struct nfsd4_destroy_session *)
 
__be32 nfsd4_destroy_clientid (struct svc_rqst *, struct nfsd4_compound_state *, struct nfsd4_destroy_clientid *)
 
__be32 nfsd4_reclaim_complete (struct svc_rqst *, struct nfsd4_compound_state *, struct nfsd4_reclaim_complete *)
 
__be32 nfsd4_process_open1 (struct nfsd4_compound_state *, struct nfsd4_open *open)
 
__be32 nfsd4_process_open2 (struct svc_rqst *rqstp, struct svc_fh *current_fh, struct nfsd4_open *open)
 
void nfsd4_cleanup_open_state (struct nfsd4_open *open, __be32 status)
 
__be32 nfsd4_open_confirm (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_open_confirm *oc)
 
__be32 nfsd4_close (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_close *close)
 
__be32 nfsd4_open_downgrade (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_open_downgrade *od)
 
__be32 nfsd4_lock (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_lock *lock)
 
__be32 nfsd4_lockt (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_lockt *lockt)
 
__be32 nfsd4_locku (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_locku *locku)
 
__be32 nfsd4_release_lockowner (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_release_lockowner *rlockowner)
 
int nfsd4_release_compoundargs (void *rq, __be32 *p, void *resp)
 
__be32 nfsd4_delegreturn (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_delegreturn *dr)
 
__be32 nfsd4_renew (struct svc_rqst *rqstp, struct nfsd4_compound_state *, clientid_t *clid)
 
__be32 nfsd4_test_stateid (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_test_stateid *test_stateid)
 
__be32 nfsd4_free_stateid (struct svc_rqst *rqstp, struct nfsd4_compound_state *, struct nfsd4_free_stateid *free_stateid)
 

Macro Definition Documentation

#define CLEAR_STATE_ID (   c,
  f 
)    ((c)->sid_flags &= ~(f))

Definition at line 51 of file xdr4.h.

#define cr_linklen   u.link.namelen

Definition at line 122 of file xdr4.h.

#define cr_linkname   u.link.name

Definition at line 123 of file xdr4.h.

#define cr_specdata1   u.dev.specdata1

Definition at line 124 of file xdr4.h.

#define cr_specdata2   u.dev.specdata2

Definition at line 125 of file xdr4.h.

#define CURRENT_STATE_ID_FLAG   (1<<0)

Definition at line 46 of file xdr4.h.

#define HAS_STATE_ID (   c,
  f 
)    ((c)->sid_flags & (f))

Definition at line 50 of file xdr4.h.

#define lk_denied   u.denied

Definition at line 189 of file xdr4.h.

#define lk_new_clientid   v.new.clientid

Definition at line 182 of file xdr4.h.

#define lk_new_lock_seqid   v.new.lock_seqid

Definition at line 181 of file xdr4.h.

#define lk_new_open_seqid   v.new.open_seqid

Definition at line 179 of file xdr4.h.

#define lk_new_open_stateid   v.new.open_stateid

Definition at line 180 of file xdr4.h.

#define lk_new_owner   v.new.owner

Definition at line 183 of file xdr4.h.

#define lk_old_lock_seqid   v.old.lock_seqid

Definition at line 185 of file xdr4.h.

#define lk_old_lock_stateid   v.old.lock_stateid

Definition at line 184 of file xdr4.h.

#define lk_resp_stateid   u.ok.stateid

Definition at line 188 of file xdr4.h.

#define lk_rflags   u.ok.rflags

Definition at line 187 of file xdr4.h.

#define NFS4_SVC_XDRSIZE   sizeof(struct nfsd4_compoundargs)

Definition at line 529 of file xdr4.h.

#define NFSD4_MAX_TAGLEN   128

Definition at line 43 of file xdr4.h.

#define op_iattr   iattr

Definition at line 250 of file xdr4.h.

#define SAVED_STATE_ID_FLAG   (1<<1)

Definition at line 47 of file xdr4.h.

#define SET_STATE_ID (   c,
  f 
)    ((c)->sid_flags |= (f))

Definition at line 49 of file xdr4.h.

#define XDR_LEN (   n)    (((n) + 3) & ~3)

Definition at line 44 of file xdr4.h.

Function Documentation

int nfs4svc_decode_compoundargs ( struct svc_rqst ,
__be32 ,
struct nfsd4_compoundargs  
)

Definition at line 3647 of file nfs4xdr.c.

int nfs4svc_encode_compoundres ( struct svc_rqst ,
__be32 ,
struct nfsd4_compoundres  
)

Definition at line 3662 of file nfs4xdr.c.

int nfs4svc_encode_voidres ( struct svc_rqst ,
__be32 ,
void  
)

Definition at line 3621 of file nfs4xdr.c.

Definition at line 1868 of file nfs4state.c.

bool nfsd4_cache_this_op ( struct nfsd4_op )

Definition at line 1105 of file nfs4proc.c.

__be32 nfsd4_check_resp_size ( struct nfsd4_compoundres ,
u32   
)

Definition at line 3532 of file nfs4xdr.c.

void nfsd4_cleanup_open_state ( struct nfsd4_open open,
__be32  status 
)

Definition at line 3086 of file nfs4state.c.

Definition at line 3757 of file nfs4state.c.

Definition at line 1754 of file nfs4state.c.

Definition at line 3804 of file nfs4state.c.

Definition at line 2103 of file nfs4state.c.

Definition at line 1907 of file nfs4state.c.

__be32 nfsd4_encode_fattr ( struct svc_fh fhp,
struct svc_export exp,
struct dentry dentry,
__be32 buffer,
int countp,
u32 bmval,
struct svc_rqst ,
int  ignore_crossmnt 
)

Definition at line 2025 of file nfs4xdr.c.

void nfsd4_encode_operation ( struct nfsd4_compoundres ,
struct nfsd4_op  
)

Definition at line 3568 of file nfs4xdr.c.

void nfsd4_encode_replay ( struct nfsd4_compoundres resp,
struct nfsd4_op op 
)

Definition at line 3603 of file nfs4xdr.c.

Definition at line 1569 of file nfs4state.c.

Definition at line 3503 of file nfs4state.c.

Definition at line 4055 of file nfs4state.c.

Definition at line 4234 of file nfs4state.c.

Definition at line 4308 of file nfs4state.c.

Definition at line 3605 of file nfs4state.c.

Definition at line 3682 of file nfs4state.c.

__be32 nfsd4_process_open1 ( struct nfsd4_compound_state ,
struct nfsd4_open open 
)

Definition at line 2601 of file nfs4state.c.

__be32 nfsd4_process_open2 ( struct svc_rqst rqstp,
struct svc_fh current_fh,
struct nfsd4_open open 
)

Definition at line 2990 of file nfs4state.c.

Definition at line 2140 of file nfs4state.c.

int nfsd4_release_compoundargs ( void rq,
__be32 p,
void resp 
)

Definition at line 3626 of file nfs4xdr.c.

Definition at line 4405 of file nfs4state.c.

__be32 nfsd4_renew ( struct svc_rqst rqstp,
struct nfsd4_compound_state ,
clientid_t clid 
)

Definition at line 3108 of file nfs4state.c.

__be32 nfsd4_replay_cache_entry ( struct nfsd4_compoundres resp,
struct nfsd4_sequence seq 
)

Definition at line 1516 of file nfs4state.c.

Definition at line 2000 of file nfs4state.c.

Definition at line 2179 of file nfs4state.c.

Definition at line 2238 of file nfs4state.c.

void nfsd4_store_cache_entry ( struct nfsd4_compoundres resp)

Definition at line 1460 of file nfs4state.c.

Definition at line 3487 of file nfs4state.c.