patch-2.3.99-pre1 linux/fs/proc/procfs_syms.c
Next file: linux/fs/qnx4/inode.c
Previous file: linux/fs/partitions/sgi.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Mar 13 12:35:39 2000
- Orig file:
v2.3.51/linux/fs/proc/procfs_syms.c
- Orig date:
Fri Mar 10 16:40:48 2000
diff -u --recursive --new-file v2.3.51/linux/fs/proc/procfs_syms.c linux/fs/proc/procfs_syms.c
@@ -22,7 +22,15 @@
static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, 0);
-int __init init_proc_fs(void)
+static int __init init_proc_fs(void)
{
- return register_filesystem(&proc_fs_type) == 0;
+ return register_filesystem(&proc_fs_type);
}
+
+static void __exit exit_proc_fs(void)
+{
+ unregister_filesystem(&proc_fs_type);
+}
+
+module_init(init_proc_fs)
+module_exit(exit_proc_fs)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)