Import 2.3.10pre1
[davej-history.git] / fs / proc / procfs_syms.c
blobc6d0032c5190f0ab54bf6febbdc92dd56fa8da24
1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/fs.h>
4 #include <linux/proc_fs.h>
6 /*
7 * This is all required so that if we load all of scsi as a module,
8 * that the scsi code will be able to talk to the /proc/scsi handling
9 * in the procfs.
11 extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
12 off_t offset, int length, int inout);
13 extern struct inode_operations proc_scsi_inode_operations;
14 extern struct proc_dir_entry proc_sys_root;
16 #ifdef CONFIG_SYSCTL
17 EXPORT_SYMBOL(proc_sys_root);
18 #endif
19 EXPORT_SYMBOL(proc_register);
20 EXPORT_SYMBOL(proc_unregister);
21 EXPORT_SYMBOL(create_proc_entry);
22 EXPORT_SYMBOL(remove_proc_entry);
23 EXPORT_SYMBOL(proc_root);
24 EXPORT_SYMBOL(proc_root_fs);
25 EXPORT_SYMBOL(proc_get_inode);
26 EXPORT_SYMBOL(proc_dir_inode_operations);
27 EXPORT_SYMBOL(proc_net_inode_operations);
28 EXPORT_SYMBOL(proc_net);
29 EXPORT_SYMBOL(proc_bus);
32 * This is required so that if we load scsi later, that the
33 * scsi code can attach to /proc/scsi in the correct manner.
35 EXPORT_SYMBOL(proc_scsi);
36 EXPORT_SYMBOL(proc_scsi_inode_operations);
37 EXPORT_SYMBOL(dispatch_scsi_info_ptr);
39 #if defined(CONFIG_SUN_OPENPROMFS_MODULE)
40 EXPORT_SYMBOL(proc_openprom_register);
41 EXPORT_SYMBOL(proc_openprom_deregister);
42 #endif
44 static struct file_system_type proc_fs_type = {
45 "proc",
46 0 /* FS_NO_DCACHE doesn't work correctly */,
47 proc_read_super,
48 NULL
51 int init_proc_fs(void)
53 return register_filesystem(&proc_fs_type) == 0;