1#include <linux/config.h> 2#include <linux/module.h> 3#include <linux/fs.h> 4#include <linux/proc_fs.h> 5 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. 10 */ 11extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start, 12 off_t offset, int length, int inout); 13extern struct inode_operations proc_scsi_inode_operations; 14extern struct proc_dir_entry proc_sys_root; 15 16EXPORT_SYMBOL(proc_sys_root); 17EXPORT_SYMBOL(proc_register); 18EXPORT_SYMBOL(proc_unregister); 19EXPORT_SYMBOL(create_proc_entry); 20EXPORT_SYMBOL(remove_proc_entry); 21EXPORT_SYMBOL(proc_root); 22EXPORT_SYMBOL(proc_get_inode); 23EXPORT_SYMBOL(in_group_p); 24EXPORT_SYMBOL(proc_dir_inode_operations); 25EXPORT_SYMBOL(proc_net_inode_operations); 26EXPORT_SYMBOL(proc_net); 27EXPORT_SYMBOL(proc_bus); 28 29/* 30 * This is required so that if we load scsi later, that the 31 * scsi code can attach to /proc/scsi in the correct manner. 32 */ 33EXPORT_SYMBOL(proc_scsi); 34EXPORT_SYMBOL(proc_scsi_inode_operations); 35EXPORT_SYMBOL(dispatch_scsi_info_ptr); 36 37#if defined(CONFIG_SUN_OPENPROMFS_MODULE) 38EXPORT_SYMBOL(proc_openprom_register); 39EXPORT_SYMBOL(proc_openprom_deregister); 40#endif 41 42static struct file_system_type proc_fs_type = { 43 "proc", 44 0 /* FS_NO_DCACHE doesn't work correctly */, 45 proc_read_super, 46 NULL 47}; 48 49int init_proc_fs(void) 50{ 51 return register_filesystem(&proc_fs_type) == 0; 52} 53

