current_stateid.h 1.4 KB

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