1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
6 #include <linux/module.h>
7 #include <linux/init.h>
10 static struct dentry
*autofs_mount(struct file_system_type
*fs_type
,
11 int flags
, const char *dev_name
, void *data
)
13 return mount_nodev(fs_type
, flags
, data
, autofs_fill_super
);
16 struct file_system_type autofs_fs_type
= {
19 .mount
= autofs_mount
,
20 .kill_sb
= autofs_kill_sb
,
22 MODULE_ALIAS_FS("autofs");
23 MODULE_ALIAS("autofs");
25 static int __init
init_autofs_fs(void)
29 autofs_dev_ioctl_init();
31 err
= register_filesystem(&autofs_fs_type
);
33 autofs_dev_ioctl_exit();
38 static void __exit
exit_autofs_fs(void)
40 autofs_dev_ioctl_exit();
41 unregister_filesystem(&autofs_fs_type
);
44 module_init(init_autofs_fs
)
45 module_exit(exit_autofs_fs
)
46 MODULE_LICENSE("GPL");