OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [fs/] [autofs/] [init.c] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1628 jcastillo
/* -*- linux-c -*- --------------------------------------------------------- *
2
 *
3
 * linux/fs/autofs/init.c
4
 *
5
 *  Copyright 1997 Transmeta Corporation -- All Rights Reserved
6
 *
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.
10
 *
11
 * ------------------------------------------------------------------------- */
12
 
13
#include <linux/module.h>
14
#include "autofs_i.h"
15
 
16
#if LINUX_VERSION_CODE < kver(2,1,36)
17
#define __initfunc(X) X
18
#else
19
#include <linux/init.h>
20
#endif
21
 
22
static struct file_system_type autofs_fs_type = {
23
        autofs_read_super, "autofs", 0, NULL
24
};
25
 
26
#ifdef MODULE
27
int init_module(void)
28
{
29
        int status;
30
 
31
        if ((status = register_filesystem(&autofs_fs_type)) == 0)
32
                register_symtab(0);
33
        return status;
34
}
35
 
36
void cleanup_module(void)
37
{
38
        unregister_filesystem(&autofs_fs_type);
39
}
40
 
41
#else /* MODULE */
42
 
43
__initfunc(int init_autofs_fs(void))
44
{
45
        return register_filesystem(&autofs_fs_type);
46
}
47
 
48
#endif /* !MODULE */
49
 
50
#ifdef DEBUG
51
void autofs_say(const char *name, int len)
52
{
53
        printk("(%d: ", len);
54
        while ( len-- )
55
                printk("%c", *name++);
56
        printk(")\n");
57
}
58
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.