1 #include <linux/config.h>
2 #include <linux/module.h>
4 #include <linux/proc_fs.h>
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
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
;
17 EXPORT_SYMBOL(proc_sys_root
);
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
);
44 static struct file_system_type proc_fs_type
= {
46 0 /* FS_NO_DCACHE doesn't work correctly */,
51 int init_proc_fs(void)
53 return register_filesystem(&proc_fs_type
) == 0;