2 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
4 * This file is part of the Linux kernel and is made available under
5 * the terms of the GNU General Public License, version 2, or at your
6 * option, any later version, incorporated herein by reference.
9 #include <linux/module.h>
10 #include <linux/init.h>
13 static struct dentry
*autofs_mount(struct file_system_type
*fs_type
,
14 int flags
, const char *dev_name
, void *data
)
16 return mount_nodev(fs_type
, flags
, data
, autofs_fill_super
);
19 static struct file_system_type autofs_fs_type
= {
22 .mount
= autofs_mount
,
23 .kill_sb
= autofs_kill_sb
,
25 MODULE_ALIAS_FS("autofs");
26 MODULE_ALIAS("autofs");
28 static int __init
init_autofs_fs(void)
32 autofs_dev_ioctl_init();
34 err
= register_filesystem(&autofs_fs_type
);
36 autofs_dev_ioctl_exit();
41 static void __exit
exit_autofs_fs(void)
43 autofs_dev_ioctl_exit();
44 unregister_filesystem(&autofs_fs_type
);
47 module_init(init_autofs_fs
)
48 module_exit(exit_autofs_fs
)
49 MODULE_LICENSE("GPL");