RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / include / linux / lockd / bind.h
blob246de1d84a2679c96436ce9601ed02183b8b6a87
1 /*
2 * linux/include/linux/lockd/bind.h
4 * This is the part of lockd visible to nfsd and the nfs client.
6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
7 */
9 #ifndef LINUX_LOCKD_BIND_H
10 #define LINUX_LOCKD_BIND_H
12 #include <linux/lockd/nlm.h>
13 /* need xdr-encoded error codes too, so... */
14 #include <linux/lockd/xdr.h>
15 #ifdef CONFIG_LOCKD_V4
16 #include <linux/lockd/xdr4.h>
17 #endif
19 /* Dummy declarations */
20 struct svc_rqst;
23 * This is the set of functions for lockd->nfsd communication
25 struct nlmsvc_binding {
26 __be32 (*fopen)(struct svc_rqst *,
27 struct nfs_fh *,
28 struct file **);
29 void (*fclose)(struct file *);
32 extern struct nlmsvc_binding * nlmsvc_ops;
35 * Functions exported by the lockd module
37 extern int nlmclnt_proc(struct inode *, int, struct file_lock *);
38 extern int lockd_up(int proto);
39 extern void lockd_down(void);
41 #endif /* LINUX_LOCKD_BIND_H */