Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (c) 2012 Netapp, Inc. All rights reserved.
0004  */
0005 #include <linux/module.h>
0006 #include <linux/nfs_fs.h>
0007 #include "internal.h"
0008 #include "nfs.h"
0009 
0010 static struct nfs_subversion nfs_v2 = {
0011     .owner = THIS_MODULE,
0012     .nfs_fs   = &nfs_fs_type,
0013     .rpc_vers = &nfs_version2,
0014     .rpc_ops  = &nfs_v2_clientops,
0015     .sops     = &nfs_sops,
0016 };
0017 
0018 static int __init init_nfs_v2(void)
0019 {
0020     register_nfs_version(&nfs_v2);
0021     return 0;
0022 }
0023 
0024 static void __exit exit_nfs_v2(void)
0025 {
0026     unregister_nfs_version(&nfs_v2);
0027 }
0028 
0029 MODULE_LICENSE("GPL");
0030 
0031 module_init(init_nfs_v2);
0032 module_exit(exit_nfs_v2);