Linux Audio

Check our new training course

Loading...
v4.17
 
 1/*
 2 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
 3 */
 4#include <linux/module.h>
 5#include <linux/nfs_fs.h>
 6#include "internal.h"
 7#include "nfs3_fs.h"
 8#include "nfs.h"
 9
10struct nfs_subversion nfs_v3 = {
11	.owner = THIS_MODULE,
12	.nfs_fs   = &nfs_fs_type,
13	.rpc_vers = &nfs_version3,
14	.rpc_ops  = &nfs_v3_clientops,
15	.sops     = &nfs_sops,
16#ifdef CONFIG_NFS_V3_ACL
17	.xattr    = nfs3_xattr_handlers,
18#endif
19};
20
21static int __init init_nfs_v3(void)
22{
23	register_nfs_version(&nfs_v3);
24	return 0;
25}
26
27static void __exit exit_nfs_v3(void)
28{
29	unregister_nfs_version(&nfs_v3);
30}
31
32MODULE_LICENSE("GPL");
33
34module_init(init_nfs_v3);
35module_exit(exit_nfs_v3);
v6.8
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 3 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
 4 */
 5#include <linux/module.h>
 6#include <linux/nfs_fs.h>
 7#include "internal.h"
 8#include "nfs3_fs.h"
 9#include "nfs.h"
10
11struct nfs_subversion nfs_v3 = {
12	.owner = THIS_MODULE,
13	.nfs_fs   = &nfs_fs_type,
14	.rpc_vers = &nfs_version3,
15	.rpc_ops  = &nfs_v3_clientops,
16	.sops     = &nfs_sops,
 
 
 
17};
18
19static int __init init_nfs_v3(void)
20{
21	register_nfs_version(&nfs_v3);
22	return 0;
23}
24
25static void __exit exit_nfs_v3(void)
26{
27	unregister_nfs_version(&nfs_v3);
28}
29
30MODULE_LICENSE("GPL");
31
32module_init(init_nfs_v3);
33module_exit(exit_nfs_v3);