patch-2.1.95 linux/drivers/pci/oldproc.c
Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/net/ne.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Thu Apr 9 13:16:18 1998
- Orig file:
v2.1.94/linux/drivers/pci/oldproc.c
- Orig date:
Mon Apr 6 17:41:00 1998
diff -u --recursive --new-file v2.1.94/linux/drivers/pci/oldproc.c linux/drivers/pci/oldproc.c
@@ -13,6 +13,8 @@
#include <linux/pci.h>
#include <linux/string.h>
#include <linux/sched.h>
+#include <linux/init.h>
+#include <linux/proc_fs.h>
#include <asm/page.h>
#ifdef CONFIG_PROC_FS
@@ -910,6 +912,17 @@
len += nprinted;
}
return len;
+}
+
+static struct proc_dir_entry proc_old_pci = {
+ PROC_PCI, 3, "pci",
+ S_IFREG | S_IRUGO, 1, 0, 0,
+ 0, &proc_array_inode_operations
+};
+
+__initfunc(void proc_old_pci_init(void))
+{
+ proc_register(&proc_root, &proc_old_pci);
}
#endif /* CONFIG_PROC_FS */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov