git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mm_for_maps: shift down_read(mmap_sem) to the caller
[safe/jmp/linux-2.6]
/
fs
/
proc
/
kmsg.c
diff --git
a/fs/proc/kmsg.c
b/fs/proc/kmsg.c
index
9fd5df3
..
7ca7834
100644
(file)
--- a/
fs/proc/kmsg.c
+++ b/
fs/proc/kmsg.c
@@
-10,13
+10,12
@@
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/poll.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/poll.h>
+#include <linux/proc_fs.h>
#include <linux/fs.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/fs.h>
#include <asm/uaccess.h>
#include <asm/io.h>
-#include "internal.h"
-
extern wait_queue_head_t log_wait;
extern int do_syslog(int type, char __user *bug, int count);
extern wait_queue_head_t log_wait;
extern int do_syslog(int type, char __user *bug, int count);
@@
-49,9
+48,16
@@
static unsigned int kmsg_poll(struct file *file, poll_table *wait)
}
}
-const struct file_operations proc_kmsg_operations = {
+
static
const struct file_operations proc_kmsg_operations = {
.read = kmsg_read,
.poll = kmsg_poll,
.open = kmsg_open,
.release = kmsg_release,
};
.read = kmsg_read,
.poll = kmsg_poll,
.open = kmsg_open,
.release = kmsg_release,
};
+
+static int __init proc_kmsg_init(void)
+{
+ proc_create("kmsg", S_IRUSR, NULL, &proc_kmsg_operations);
+ return 0;
+}
+module_init(proc_kmsg_init);