patch-1.3.59 linux/fs/proc/procfs_syms.c
Next file: linux/fs/proc/root.c
Previous file: linux/fs/buffer.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Jan 23 21:50:18 1996
- Orig file:
v1.3.58/linux/fs/proc/procfs_syms.c
- Orig date:
Tue Jan 23 21:15:51 1996
diff -u --recursive --new-file v1.3.58/linux/fs/proc/procfs_syms.c linux/fs/proc/procfs_syms.c
@@ -1,8 +1,16 @@
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
+/*
+ * This is all required so that if we load all of scsi as a module,
+ * that the scsi code will be able to talk to the /proc/scsi handling
+ * in the procfs.
+ */
+extern int (* dispatch_scsi_info_ptr) (int ino, char *buffer, char **start,
+ 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>
@@ -12,11 +20,14 @@
X(generate_cluster),
X(proc_net_inode_operations),
X(proc_net),
-#ifdef CONFIG_SCSI /* Ugh... */
+
+ /*
+ * 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),
-#endif
#include <linux/symtab_end.h>
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this