Linux Audio

Check our new training course

Loading...
v6.2
 1// SPDX-License-Identifier: GPL-2.0-or-later
 2/*
 3 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
 4 */
 5
 6#include <linux/module.h>
 7#include <linux/init.h>
 8#include "autofs_i.h"
 9
10static struct dentry *autofs_mount(struct file_system_type *fs_type,
11	int flags, const char *dev_name, void *data)
12{
13	return mount_nodev(fs_type, flags, data, autofs_fill_super);
14}
15
16struct file_system_type autofs_fs_type = {
17	.owner		= THIS_MODULE,
18	.name		= "autofs",
19	.mount		= autofs_mount,
 
20	.kill_sb	= autofs_kill_sb,
21};
22MODULE_ALIAS_FS("autofs");
23MODULE_ALIAS("autofs");
24
25static int __init init_autofs_fs(void)
26{
27	int err;
28
29	autofs_dev_ioctl_init();
30
31	err = register_filesystem(&autofs_fs_type);
32	if (err)
33		autofs_dev_ioctl_exit();
34
35	return err;
36}
37
38static void __exit exit_autofs_fs(void)
39{
40	autofs_dev_ioctl_exit();
41	unregister_filesystem(&autofs_fs_type);
42}
43
44module_init(init_autofs_fs)
45module_exit(exit_autofs_fs)
46MODULE_LICENSE("GPL");
v6.8
 1// SPDX-License-Identifier: GPL-2.0-or-later
 2/*
 3 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
 4 */
 5
 6#include <linux/module.h>
 7#include <linux/init.h>
 8#include "autofs_i.h"
 9
 
 
 
 
 
 
10struct file_system_type autofs_fs_type = {
11	.owner		= THIS_MODULE,
12	.name		= "autofs",
13	.init_fs_context = autofs_init_fs_context,
14	.parameters	= autofs_param_specs,
15	.kill_sb	= autofs_kill_sb,
16};
17MODULE_ALIAS_FS("autofs");
18MODULE_ALIAS("autofs");
19
20static int __init init_autofs_fs(void)
21{
22	int err;
23
24	autofs_dev_ioctl_init();
25
26	err = register_filesystem(&autofs_fs_type);
27	if (err)
28		autofs_dev_ioctl_exit();
29
30	return err;
31}
32
33static void __exit exit_autofs_fs(void)
34{
35	autofs_dev_ioctl_exit();
36	unregister_filesystem(&autofs_fs_type);
37}
38
39module_init(init_autofs_fs)
40module_exit(exit_autofs_fs)
41MODULE_LICENSE("GPL");