share.h 878 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * linux/include/linux/lockd/share.h
  4. *
  5. * DOS share management for lockd.
  6. *
  7. * Copyright (C) 1996, Olaf Kirch <[email protected]>
  8. */
  9. #ifndef LINUX_LOCKD_SHARE_H
  10. #define LINUX_LOCKD_SHARE_H
  11. /*
  12. * DOS share for a specific file
  13. */
  14. struct nlm_share {
  15. struct nlm_share * s_next; /* linked list */
  16. struct nlm_host * s_host; /* client host */
  17. struct nlm_file * s_file; /* shared file */
  18. struct xdr_netobj s_owner; /* owner handle */
  19. u32 s_access; /* access mode */
  20. u32 s_mode; /* deny mode */
  21. };
  22. __be32 nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
  23. struct nlm_args *);
  24. __be32 nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
  25. struct nlm_args *);
  26. void nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *,
  27. nlm_host_match_fn_t);
  28. #endif /* LINUX_LOCKD_SHARE_H */