Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ae048112
Commit
ae048112
authored
Oct 04, 2008
by
Alexey Dobriyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proc: move /proc/kmsg creation to fs/proc/kmsg.c
Signed-off-by:
Alexey Dobriyan
<
adobriyan@gmail.com
>
parent
65968928
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
fs/proc/internal.h
fs/proc/internal.h
+0
-1
fs/proc/kmsg.c
fs/proc/kmsg.c
+9
-3
fs/proc/proc_misc.c
fs/proc/proc_misc.c
+0
-3
No files found.
fs/proc/internal.h
View file @
ae048112
...
...
@@ -61,7 +61,6 @@ extern const struct file_operations proc_smaps_operations;
extern
const
struct
file_operations
proc_clear_refs_operations
;
extern
const
struct
file_operations
proc_pagemap_operations
;
extern
const
struct
file_operations
proc_net_operations
;
extern
const
struct
file_operations
proc_kmsg_operations
;
extern
const
struct
inode_operations
proc_net_inode_operations
;
void
free_proc_entry
(
struct
proc_dir_entry
*
de
);
...
...
fs/proc/kmsg.c
View file @
ae048112
...
...
@@ -10,13 +10,12 @@
#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 "internal.h"
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
,
};
static
int
__init
proc_kmsg_init
(
void
)
{
proc_create
(
"kmsg"
,
S_IRUSR
,
NULL
,
&
proc_kmsg_operations
);
return
0
;
}
module_init
(
proc_kmsg_init
);
fs/proc/proc_misc.c
View file @
ae048112
...
...
@@ -605,9 +605,6 @@ void __init proc_misc_init(void)
proc_symlink
(
"mounts"
,
NULL
,
"self/mounts"
);
/* And now for trickier ones */
#ifdef CONFIG_PRINTK
proc_create
(
"kmsg"
,
S_IRUSR
,
NULL
,
&
proc_kmsg_operations
);
#endif
#ifdef CONFIG_FILE_LOCKING
proc_create
(
"locks"
,
0
,
NULL
,
&
proc_locks_operations
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment