summaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 2b6eece4a..28cd61f5f 100644
--- a/fs/proc/base.c
+++ b/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>
@@ -18,7 +19,7 @@ static struct file_operations proc_base_operations = {
NULL, /* read - bad */
NULL, /* write - bad */
proc_readdir, /* readdir */
- NULL, /* select - default */
+ NULL, /* poll - default */
NULL, /* ioctl - default */
NULL, /* mmap */
NULL, /* no special open code */
@@ -146,8 +147,21 @@ static struct proc_dir_entry proc_pid_maps = {
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);