patch-1.3.46 linux/fs/proc/root.c

Next file: linux/fs/smbfs/dir.c
Previous file: linux/fs/proc/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.45/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -13,6 +13,9 @@
 #include <linux/proc_fs.h>
 #include <linux/stat.h>
 #include <linux/config.h>
+#ifdef CONFIG_APM
+#include <linux/apm_bios.h>
+#endif
 
 /*
  * Offset of the first process in the /proc root directory..
@@ -293,7 +296,13 @@
 		PROC_IOPORTS, 7, "ioports",
 		S_IFREG | S_IRUGO, 1, 0, 0,
 	});
-
+#ifdef CONFIG_APM
+	proc_register(&proc_root, &(struct proc_dir_entry) {
+	        PROC_APM, 3, "apm",
+		S_IFREG | S_IRUGO, 1, 0, 0,
+	});
+#endif
+		   
 	if (prof_shift) {
 		proc_register(&proc_root, &(struct proc_dir_entry) {
 			PROC_PROFILE, 7, "profile",

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