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
nexedi
linux
Commits
ee21ed0a
Commit
ee21ed0a
authored
Mar 31, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
procfs: kill ->write_proc()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ff9046ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
26 deletions
+0
-26
fs/proc/generic.c
fs/proc/generic.c
+0
-25
include/linux/proc_fs.h
include/linux/proc_fs.h
+0
-1
No files found.
fs/proc/generic.c
View file @
ee21ed0a
...
@@ -196,30 +196,6 @@ proc_file_read(struct file *file, char __user *buf, size_t nbytes,
...
@@ -196,30 +196,6 @@ proc_file_read(struct file *file, char __user *buf, size_t nbytes,
return
rv
;
return
rv
;
}
}
static
ssize_t
proc_file_write
(
struct
file
*
file
,
const
char
__user
*
buffer
,
size_t
count
,
loff_t
*
ppos
)
{
struct
proc_dir_entry
*
pde
=
PDE
(
file_inode
(
file
));
ssize_t
rv
=
-
EIO
;
if
(
pde
->
write_proc
)
{
spin_lock
(
&
pde
->
pde_unload_lock
);
if
(
!
pde
->
proc_fops
)
{
spin_unlock
(
&
pde
->
pde_unload_lock
);
return
rv
;
}
pde
->
pde_users
++
;
spin_unlock
(
&
pde
->
pde_unload_lock
);
/* FIXME: does this routine need ppos? probably... */
rv
=
pde
->
write_proc
(
file
,
buffer
,
count
,
pde
->
data
);
pde_users_dec
(
pde
);
}
return
rv
;
}
static
loff_t
static
loff_t
proc_file_lseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
)
proc_file_lseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
)
{
{
...
@@ -239,7 +215,6 @@ proc_file_lseek(struct file *file, loff_t offset, int orig)
...
@@ -239,7 +215,6 @@ proc_file_lseek(struct file *file, loff_t offset, int orig)
static
const
struct
file_operations
proc_file_operations
=
{
static
const
struct
file_operations
proc_file_operations
=
{
.
llseek
=
proc_file_lseek
,
.
llseek
=
proc_file_lseek
,
.
read
=
proc_file_read
,
.
read
=
proc_file_read
,
.
write
=
proc_file_write
,
};
};
static
int
proc_notify_change
(
struct
dentry
*
dentry
,
struct
iattr
*
iattr
)
static
int
proc_notify_change
(
struct
dentry
*
dentry
,
struct
iattr
*
iattr
)
...
...
include/linux/proc_fs.h
View file @
ee21ed0a
...
@@ -72,7 +72,6 @@ struct proc_dir_entry {
...
@@ -72,7 +72,6 @@ struct proc_dir_entry {
struct
proc_dir_entry
*
next
,
*
parent
,
*
subdir
;
struct
proc_dir_entry
*
next
,
*
parent
,
*
subdir
;
void
*
data
;
void
*
data
;
read_proc_t
*
read_proc
;
read_proc_t
*
read_proc
;
write_proc_t
*
write_proc
;
atomic_t
count
;
/* use count */
atomic_t
count
;
/* use count */
int
pde_users
;
/* number of callers into module in progress */
int
pde_users
;
/* number of callers into module in progress */
struct
completion
*
pde_unload_completion
;
struct
completion
*
pde_unload_completion
;
...
...
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