share.h 804 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * linux/include/linux/lockd/share.h
  3. *
  4. * DOS share management for lockd.
  5. *
  6. * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
  7. */
  8. #ifndef LINUX_LOCKD_SHARE_H
  9. #define LINUX_LOCKD_SHARE_H
  10. /*
  11. * DOS share for a specific file
  12. */
  13. struct nlm_share {
  14. struct nlm_share * s_next; /* linked list */
  15. struct nlm_host * s_host; /* client host */
  16. struct nlm_file * s_file; /* shared file */
  17. struct xdr_netobj s_owner; /* owner handle */
  18. u32 s_access; /* access mode */
  19. u32 s_mode; /* deny mode */
  20. };
  21. u32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
  22. struct nlm_args *);
  23. u32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
  24. struct nlm_args *);
  25. int nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, int);
  26. #endif /* LINUX_LOCKD_SHARE_H */