current_stateid.h 1.4 KB

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