Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * linux/include/linux/lockd/share.h
0004  *
0005  * DOS share management for lockd.
0006  *
0007  * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
0008  */
0009 
0010 #ifndef LINUX_LOCKD_SHARE_H
0011 #define LINUX_LOCKD_SHARE_H
0012 
0013 /*
0014  * DOS share for a specific file
0015  */
0016 struct nlm_share {
0017     struct nlm_share *  s_next;     /* linked list */
0018     struct nlm_host *   s_host;     /* client host */
0019     struct nlm_file *   s_file;     /* shared file */
0020     struct xdr_netobj   s_owner;    /* owner handle */
0021     u32         s_access;   /* access mode */
0022     u32         s_mode;     /* deny mode */
0023 };
0024 
0025 __be32  nlmsvc_share_file(struct nlm_host *, struct nlm_file *,
0026                            struct nlm_args *);
0027 __be32  nlmsvc_unshare_file(struct nlm_host *, struct nlm_file *,
0028                            struct nlm_args *);
0029 void    nlmsvc_traverse_shares(struct nlm_host *, struct nlm_file *,
0030                            nlm_host_match_fn_t);
0031 
0032 #endif /* LINUX_LOCKD_SHARE_H */