1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef _NFSD4_CURRENT_STATE_H 3*4882a593Smuzhiyun #define _NFSD4_CURRENT_STATE_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include "state.h" 6*4882a593Smuzhiyun #include "xdr4.h" 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun extern void clear_current_stateid(struct nfsd4_compound_state *cstate); 9*4882a593Smuzhiyun /* 10*4882a593Smuzhiyun * functions to set current state id 11*4882a593Smuzhiyun */ 12*4882a593Smuzhiyun extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *, 13*4882a593Smuzhiyun union nfsd4_op_u *); 14*4882a593Smuzhiyun extern void nfsd4_set_openstateid(struct nfsd4_compound_state *, 15*4882a593Smuzhiyun union nfsd4_op_u *); 16*4882a593Smuzhiyun extern void nfsd4_set_lockstateid(struct nfsd4_compound_state *, 17*4882a593Smuzhiyun union nfsd4_op_u *); 18*4882a593Smuzhiyun extern void nfsd4_set_closestateid(struct nfsd4_compound_state *, 19*4882a593Smuzhiyun union nfsd4_op_u *); 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun /* 22*4882a593Smuzhiyun * functions to consume current state id 23*4882a593Smuzhiyun */ 24*4882a593Smuzhiyun extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *, 25*4882a593Smuzhiyun union nfsd4_op_u *); 26*4882a593Smuzhiyun extern void nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *, 27*4882a593Smuzhiyun union nfsd4_op_u *); 28*4882a593Smuzhiyun extern void nfsd4_get_freestateid(struct nfsd4_compound_state *, 29*4882a593Smuzhiyun union nfsd4_op_u *); 30*4882a593Smuzhiyun extern void nfsd4_get_setattrstateid(struct nfsd4_compound_state *, 31*4882a593Smuzhiyun union nfsd4_op_u *); 32*4882a593Smuzhiyun extern void nfsd4_get_closestateid(struct nfsd4_compound_state *, 33*4882a593Smuzhiyun union nfsd4_op_u *); 34*4882a593Smuzhiyun extern void nfsd4_get_lockustateid(struct nfsd4_compound_state *, 35*4882a593Smuzhiyun union nfsd4_op_u *); 36*4882a593Smuzhiyun extern void nfsd4_get_readstateid(struct nfsd4_compound_state *, 37*4882a593Smuzhiyun union nfsd4_op_u *); 38*4882a593Smuzhiyun extern void nfsd4_get_writestateid(struct nfsd4_compound_state *, 39*4882a593Smuzhiyun union nfsd4_op_u *); 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun #endif /* _NFSD4_CURRENT_STATE_H */ 42