Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (c) 2012 Netapp, Inc. All rights reserved.
0004  *
0005  * Function and structures exported by the NFS module
0006  * for use by NFS version-specific modules.
0007  */
0008 #ifndef __LINUX_INTERNAL_NFS_H
0009 #define __LINUX_INTERNAL_NFS_H
0010 
0011 #include <linux/fs.h>
0012 #include <linux/sunrpc/sched.h>
0013 #include <linux/nfs_xdr.h>
0014 
0015 struct nfs_subversion {
0016     struct module *owner;   /* THIS_MODULE pointer */
0017     struct file_system_type *nfs_fs;    /* NFS filesystem type */
0018     const struct rpc_version *rpc_vers; /* NFS version information */
0019     const struct nfs_rpc_ops *rpc_ops;  /* NFS operations */
0020     const struct super_operations *sops;    /* NFS Super operations */
0021     const struct xattr_handler **xattr; /* NFS xattr handlers */
0022     struct list_head list;      /* List of NFS versions */
0023 };
0024 
0025 struct nfs_subversion *get_nfs_version(unsigned int);
0026 void put_nfs_version(struct nfs_subversion *);
0027 void register_nfs_version(struct nfs_subversion *);
0028 void unregister_nfs_version(struct nfs_subversion *);
0029 
0030 #endif /* __LINUX_INTERNAL_NFS_H */