patch-2.3.99-pre7 linux/fs/proc/procfs_syms.c
Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon May 8 11:17:47 2000
- Orig file:
v2.3.99-pre6/linux/fs/proc/procfs_syms.c
- Orig date:
Tue Mar 14 19:10:40 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/fs/proc/procfs_syms.c linux/fs/proc/procfs_syms.c
@@ -20,16 +20,24 @@
EXPORT_SYMBOL(proc_bus);
EXPORT_SYMBOL(proc_root_driver);
-static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, 0);
+static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, FS_SINGLE);
static int __init init_proc_fs(void)
{
- return register_filesystem(&proc_fs_type);
+ int err = register_filesystem(&proc_fs_type);
+ if (!err) {
+ proc_mnt = kern_mount(&proc_fs_type);
+ err = PTR_ERR(proc_mnt);
+ if (!IS_ERR(proc_mnt))
+ err = 0;
+ }
+ return err;
}
static void __exit exit_proc_fs(void)
{
unregister_filesystem(&proc_fs_type);
+ kern_umount(proc_mnt);
}
module_init(init_proc_fs)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)