patch-1.3.58 linux/fs/proc/procfs_syms.c

Next file: linux/fs/proc/scsi.c
Previous file: linux/fs/proc/net.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.57/linux/fs/proc/procfs_syms.c linux/fs/proc/procfs_syms.c
@@ -0,0 +1,35 @@
+#include <linux/config.h>
+#include <linux/module.h>
+#include <linux/fs.h>
+#include <linux/proc_fs.h>
+
+static struct symbol_table procfs_syms = {
+/* Should this be surrounded with "#ifdef CONFIG_MODULES" ? */
+#include <linux/symtab_begin.h>
+	X(proc_register),
+	X(proc_unregister),
+	X(in_group_p),
+	X(generate_cluster),
+	X(proc_net_inode_operations),
+	X(proc_net),
+#ifdef CONFIG_SCSI /* Ugh... */
+	X(proc_scsi),
+	X(proc_scsi_inode_operations),
+	X(dispatch_scsi_info_ptr),
+#endif
+#include <linux/symtab_end.h>
+};
+
+static struct file_system_type proc_fs_type = {
+	proc_read_super, "proc", 0, NULL
+};
+
+int init_proc_fs(void)
+{
+	int status;
+
+        if ((status = register_filesystem(&proc_fs_type)) == 0)
+		status = register_symtab(&procfs_syms);
+	return status;
+}
+

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