bind.h 901 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  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. #ifndef LINUX_LOCKD_BIND_H
  9. #define LINUX_LOCKD_BIND_H
  10. #include <linux/lockd/nlm.h>
  11. /* need xdr-encoded error codes too, so... */
  12. #include <linux/lockd/xdr.h>
  13. #ifdef CONFIG_LOCKD_V4
  14. #include <linux/lockd/xdr4.h>
  15. #endif
  16. /* Dummy declarations */
  17. struct svc_rqst;
  18. /*
  19. * This is the set of functions for lockd->nfsd communication
  20. */
  21. struct nlmsvc_binding {
  22. __be32 (*fopen)(struct svc_rqst *,
  23. struct nfs_fh *,
  24. struct file **);
  25. void (*fclose)(struct file *);
  26. };
  27. extern struct nlmsvc_binding * nlmsvc_ops;
  28. /*
  29. * Functions exported by the lockd module
  30. */
  31. extern int nlmclnt_proc(struct inode *, int, struct file_lock *);
  32. extern int lockd_up(int proto);
  33. extern void lockd_down(void);
  34. #endif /* LINUX_LOCKD_BIND_H */