patch-2.1.17 linux/fs/proc/base.c
Next file: linux/fs/proc/inode.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Thu Dec 19 11:15:46 1996
- Orig file:
v2.1.16/linux/fs/proc/base.c
- Orig date:
Tue Oct 29 19:58:44 1996
diff -u --recursive --new-file v2.1.16/linux/fs/proc/base.c linux/fs/proc/base.c
@@ -8,6 +8,7 @@
#include <asm/uaccess.h>
+#include <linux/config.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
@@ -146,8 +147,21 @@
0, &proc_arraylong_inode_operations,
NULL, proc_pid_fill_inode,
};
+
+#if CONFIG_AP1000
+static struct proc_dir_entry proc_pid_ringbuf = {
+ PROC_PID_RINGBUF, 7, "ringbuf",
+ S_IFREG | S_IRUGO | S_IWUSR, 1, 0, 0,
+ 0, &proc_ringbuf_inode_operations,
+ NULL, proc_pid_fill_inode,
+};
+#endif
+
void proc_base_init(void)
{
+#if CONFIG_AP1000
+ proc_register(&proc_pid, &proc_pid_ringbuf);
+#endif
proc_register(&proc_pid, &proc_pid_status);
proc_register(&proc_pid, &proc_pid_mem);
proc_register(&proc_pid, &proc_pid_cwd);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov