bind.h 758 B

123456789101112131415161718192021222324252627282930313233343536
  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. /* Dummy declarations */
  12. struct svc_rqst;
  13. /*
  14. * This is the set of functions for lockd->nfsd communication
  15. */
  16. struct nlmsvc_binding {
  17. u32 (*fopen)(struct svc_rqst *,
  18. struct nfs_fh *,
  19. struct file **);
  20. void (*fclose)(struct file *);
  21. };
  22. extern struct nlmsvc_binding * nlmsvc_ops;
  23. /*
  24. * Functions exported by the lockd module
  25. */
  26. extern int nlmclnt_proc(struct inode *, int, struct file_lock *);
  27. extern int lockd_up(void);
  28. extern void lockd_down(void);
  29. #endif /* LINUX_LOCKD_BIND_H */