1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/fs.h>
4 #include <linux/proc_fs.h>
5 #include <linux/init.h>
6
7 extern struct proc_dir_entry *proc_sys_root;
8
9 #ifdef CONFIG_SYSCTL
10 EXPORT_SYMBOL(proc_sys_root);
11 #endif
12 EXPORT_SYMBOL(proc_symlink);
13 EXPORT_SYMBOL(proc_mknod);
14 EXPORT_SYMBOL(proc_mkdir);
15 EXPORT_SYMBOL(create_proc_entry);
16 EXPORT_SYMBOL(remove_proc_entry);
17 EXPORT_SYMBOL(proc_root);
18 EXPORT_SYMBOL(proc_root_fs);
19 EXPORT_SYMBOL(proc_net);
20 EXPORT_SYMBOL(proc_bus);
21 EXPORT_SYMBOL(proc_root_driver);
22
23 static DECLARE_FSTYPE(proc_fs_type, "proc", proc_read_super, FS_SINGLE);
24
25 static int __init init_proc_fs(void)
26 {
27 int err = register_filesystem(&proc_fs_type);
28 if (!err) {
29 proc_mnt = kern_mount(&proc_fs_type);
30 err = PTR_ERR(proc_mnt);
31 if (IS_ERR(proc_mnt))
32 unregister_filesystem(&proc_fs_type);
33 else
34 err = 0;
35 }
36 return err;
37 }
38
39 static void __exit exit_proc_fs(void)
40 {
41 unregister_filesystem(&proc_fs_type);
42 kern_umount(proc_mnt);
43 }
44
45 module_init(init_proc_fs)
46 module_exit(exit_proc_fs)
47
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.