blob: aa50d89eacd77abb748ad7a892f20575b7c4b1bb [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/include/linux/lockd/bind.h
3 *
4 * This is the part of lockd visible to nfsd and the nfs client.
5 *
6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
7 */
8
9#ifndef LINUX_LOCKD_BIND_H
10#define LINUX_LOCKD_BIND_H
11
12#include <linux/lockd/nlm.h>
NeilBrownd343fce2006-10-17 00:10:18 -070013/* 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
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19/* Dummy declarations */
20struct svc_rqst;
21
22/*
23 * This is the set of functions for lockd->nfsd communication
24 */
25struct nlmsvc_binding {
26 u32 (*fopen)(struct svc_rqst *,
27 struct nfs_fh *,
28 struct file **);
29 void (*fclose)(struct file *);
30};
31
32extern struct nlmsvc_binding * nlmsvc_ops;
33
34/*
35 * Functions exported by the lockd module
36 */
37extern int nlmclnt_proc(struct inode *, int, struct file_lock *);
NeilBrown24e36662006-10-02 02:17:45 -070038extern int lockd_up(int proto);
Linus Torvalds1da177e2005-04-16 15:20:36 -070039extern void lockd_down(void);
40
41#endif /* LINUX_LOCKD_BIND_H */