Version:  2.0.40 2.2.26 2.4.37 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8

Linux/fs/autofs4/init.c

  1 /*
  2  * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
  3  *
  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.
  7  */
  8 
  9 #include <linux/module.h>
 10 #include <linux/init.h>
 11 #include "autofs_i.h"
 12 
 13 static struct dentry *autofs_mount(struct file_system_type *fs_type,
 14         int flags, const char *dev_name, void *data)
 15 {
 16         return mount_nodev(fs_type, flags, data, autofs4_fill_super);
 17 }
 18 
 19 static struct file_system_type autofs_fs_type = {
 20         .owner          = THIS_MODULE,
 21         .name           = "autofs",
 22         .mount          = autofs_mount,
 23         .kill_sb        = autofs4_kill_sb,
 24 };
 25 MODULE_ALIAS_FS("autofs");
 26 
 27 static int __init init_autofs4_fs(void)
 28 {
 29         int err;
 30 
 31         autofs_dev_ioctl_init();
 32 
 33         err = register_filesystem(&autofs_fs_type);
 34         if (err)
 35                 autofs_dev_ioctl_exit();
 36 
 37         return err;
 38 }
 39 
 40 static void __exit exit_autofs4_fs(void)
 41 {
 42         autofs_dev_ioctl_exit();
 43         unregister_filesystem(&autofs_fs_type);
 44 }
 45 
 46 module_init(init_autofs4_fs) 
 47 module_exit(exit_autofs4_fs)
 48 MODULE_LICENSE("GPL");
 49 

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us