Linux 2.2.0
[davej-history.git] / fs / autofs / init.c
blob2afca0547793a610ffe4213c973706c8beda8622
1 /* -*- linux-c -*- --------------------------------------------------------- *
3 * linux/fs/autofs/init.c
5 * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
7 * This file is part of the Linux kernel and is made available under
8 * the terms of the GNU General Public License, version 2, or at your
9 * option, any later version, incorporated herein by reference.
11 * ------------------------------------------------------------------------- */
13 #include <linux/module.h>
14 #include <linux/init.h>
15 #include "autofs_i.h"
17 static struct file_system_type autofs_fs_type = {
18 "autofs",
20 autofs_read_super,
21 NULL
24 #ifdef MODULE
25 int init_module(void)
27 return register_filesystem(&autofs_fs_type);
30 void cleanup_module(void)
32 unregister_filesystem(&autofs_fs_type);
35 #else /* MODULE */
37 __initfunc(int init_autofs_fs(void))
39 return register_filesystem(&autofs_fs_type);
42 #endif /* !MODULE */
44 #ifdef DEBUG
45 void autofs_say(const char *name, int len)
47 printk("(%d: ", len);
48 while ( len-- )
49 printk("%c", *name++);
50 printk(")\n");
52 #endif