diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /fs/proc/procfs_syms.c | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'fs/proc/procfs_syms.c')
-rw-r--r-- | fs/proc/procfs_syms.c | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/fs/proc/procfs_syms.c b/fs/proc/procfs_syms.c index 7a538e240..809a26084 100644 --- a/fs/proc/procfs_syms.c +++ b/fs/proc/procfs_syms.c @@ -1,3 +1,4 @@ +#include <linux/config.h> #include <linux/module.h> #include <linux/fs.h> #include <linux/proc_fs.h> @@ -8,30 +9,32 @@ * in the procfs. */ extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start, - off_t offset, int length, int inout); + off_t offset, int length, int inout); extern struct inode_operations proc_scsi_inode_operations; -static struct symbol_table procfs_syms = { -/* Should this be surrounded with "#ifdef CONFIG_MODULES" ? */ -#include <linux/symtab_begin.h> - X(proc_register), - X(proc_register_dynamic), - X(proc_unregister), - X(proc_root), - X(in_group_p), - X(generate_cluster), - X(proc_net_inode_operations), - X(proc_net), +EXPORT_SYMBOL(proc_register); +EXPORT_SYMBOL(proc_unregister); +EXPORT_SYMBOL(create_proc_entry); +EXPORT_SYMBOL(remove_proc_entry); +EXPORT_SYMBOL(proc_root); +EXPORT_SYMBOL(proc_get_inode); +EXPORT_SYMBOL(in_group_p); +EXPORT_SYMBOL(proc_dir_inode_operations); +EXPORT_SYMBOL(proc_net_inode_operations); +EXPORT_SYMBOL(proc_net); - /* - * This is required so that if we load scsi later, that the - * scsi code can attach to /proc/scsi in the correct manner. - */ - X(proc_scsi), - X(proc_scsi_inode_operations), - X(dispatch_scsi_info_ptr), -#include <linux/symtab_end.h> -}; +/* + * This is required so that if we load scsi later, that the + * scsi code can attach to /proc/scsi in the correct manner. + */ +EXPORT_SYMBOL(proc_scsi); +EXPORT_SYMBOL(proc_scsi_inode_operations); +EXPORT_SYMBOL(dispatch_scsi_info_ptr); + +#if defined(CONFIG_SUN_OPENPROMFS_MODULE) +EXPORT_SYMBOL(proc_openprom_register); +EXPORT_SYMBOL(proc_openprom_deregister); +#endif static struct file_system_type proc_fs_type = { proc_read_super, "proc", 0, NULL @@ -39,10 +42,5 @@ static struct file_system_type proc_fs_type = { int init_proc_fs(void) { - int status; - - if ((status = register_filesystem(&proc_fs_type)) == 0) - status = register_symtab(&procfs_syms); - return status; + return register_filesystem(&proc_fs_type) == 0; } - |