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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [fs/] [proc/] [procfs_syms.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1628 jcastillo
#include <linux/module.h>
2
#include <linux/fs.h>
3
#include <linux/proc_fs.h>
4
 
5
/*
6
 * This is all required so that if we load all of scsi as a module,
7
 * that the scsi code will be able to talk to the /proc/scsi handling
8
 * in the procfs.
9
 */
10
extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
11
                                off_t offset, int length, int inout);
12
extern struct inode_operations proc_scsi_inode_operations;
13
 
14
static struct symbol_table procfs_syms = {
15
/* Should this be surrounded with "#ifdef CONFIG_MODULES" ? */
16
#include <linux/symtab_begin.h>
17
        X(proc_register),
18
        X(proc_register_dynamic),
19
        X(proc_unregister),
20
        X(proc_root),
21
        X(in_group_p),
22
        X(proc_net_inode_operations),
23
        X(proc_net),
24
 
25
        /*
26
         * This is required so that if we load scsi later, that the
27
         * scsi code can attach to /proc/scsi in the correct manner.
28
         */
29
        X(proc_scsi),
30
        X(proc_scsi_inode_operations),
31
        X(dispatch_scsi_info_ptr),
32
#include <linux/symtab_end.h>
33
};
34
 
35
static struct file_system_type proc_fs_type = {
36
        proc_read_super, "proc", 0, NULL
37
};
38
 
39
int init_proc_fs(void)
40
{
41
        int status;
42
 
43
        if ((status = register_filesystem(&proc_fs_type)) == 0)
44
                status = register_symtab(&procfs_syms);
45
        return status;
46
}
47
 

powered by: WebSVN 2.1.0

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