home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / linux / lockd / share.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  805 b   |  31 lines

  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.  
  9. #ifndef LINUX_LOCKD_SHARE_H
  10. #define LINUX_LOCKD_SHARE_H
  11.  
  12. /*
  13.  * DOS share for a specific file
  14.  */
  15. struct nlm_share {
  16.     struct nlm_share *    s_next;        /* linked list */
  17.     struct nlm_host *    s_host;        /* client host */
  18.     struct nlm_file *    s_file;        /* shared file */
  19.     struct xdr_netobj    s_owner;    /* owner handle */
  20.     u32            s_access;    /* access mode */
  21.     u32            s_mode;        /* deny mode */
  22. };
  23.  
  24. u32    nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
  25.                            struct nlm_args *);
  26. u32    nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
  27.                            struct nlm_args *);
  28. void    nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *, int);
  29.  
  30. #endif /* LINUX_LOCKD_SHARE_H */
  31.