nfs.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2012 Netapp, Inc. All rights reserved.
  4. *
  5. * Function and structures exported by the NFS module
  6. * for use by NFS version-specific modules.
  7. */
  8. #ifndef __LINUX_INTERNAL_NFS_H
  9. #define __LINUX_INTERNAL_NFS_H
  10. #include <linux/fs.h>
  11. #include <linux/sunrpc/sched.h>
  12. #include <linux/nfs_xdr.h>
  13. struct nfs_subversion {
  14. struct module *owner; /* THIS_MODULE pointer */
  15. struct file_system_type *nfs_fs; /* NFS filesystem type */
  16. const struct rpc_version *rpc_vers; /* NFS version information */
  17. const struct nfs_rpc_ops *rpc_ops; /* NFS operations */
  18. const struct super_operations *sops; /* NFS Super operations */
  19. const struct xattr_handler **xattr; /* NFS xattr handlers */
  20. struct list_head list; /* List of NFS versions */
  21. };
  22. struct nfs_subversion *get_nfs_version(unsigned int);
  23. void put_nfs_version(struct nfs_subversion *);
  24. void register_nfs_version(struct nfs_subversion *);
  25. void unregister_nfs_version(struct nfs_subversion *);
  26. #endif /* __LINUX_INTERNAL_NFS_H */