Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _NFSD4_CURRENT_STATE_H
0003 #define _NFSD4_CURRENT_STATE_H
0004 
0005 #include "state.h"
0006 #include "xdr4.h"
0007 
0008 extern void clear_current_stateid(struct nfsd4_compound_state *cstate);
0009 /*
0010  * functions to set current state id
0011  */
0012 extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *,
0013         union nfsd4_op_u *);
0014 extern void nfsd4_set_openstateid(struct nfsd4_compound_state *,
0015         union nfsd4_op_u *);
0016 extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *,
0017         union nfsd4_op_u *);
0018 extern void nfsd4_set_closestateid(struct nfsd4_compound_state *,
0019         union nfsd4_op_u *);
0020 
0021 /*
0022  * functions to consume current state id
0023  */
0024 extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *,
0025         union nfsd4_op_u *);
0026 extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *,
0027         union nfsd4_op_u *);
0028 extern void nfsd4_get_freestateid(struct nfsd4_compound_state *,
0029         union nfsd4_op_u *);
0030 extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *,
0031         union nfsd4_op_u *);
0032 extern void nfsd4_get_closestateid(struct nfsd4_compound_state *,
0033         union nfsd4_op_u *);
0034 extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *,
0035         union nfsd4_op_u *);
0036 extern void nfsd4_get_readstateid(struct nfsd4_compound_state *,
0037         union nfsd4_op_u *);
0038 extern void nfsd4_get_writestateid(struct nfsd4_compound_state *,
0039         union nfsd4_op_u *);
0040 
0041 #endif   /* _NFSD4_CURRENT_STATE_H */