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
717b0cbc
Commit
717b0cbc
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: netlink annotation
parent
076d6e49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
net/netlink/netlink_dev.c
net/netlink/netlink_dev.c
+3
-3
No files found.
net/netlink/netlink_dev.c
View file @
717b0cbc
...
...
@@ -54,7 +54,7 @@ static unsigned int netlink_poll(struct file *file, poll_table * wait)
* Write a message to the kernel side of a communication link
*/
static
ssize_t
netlink_write
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
netlink_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
pos
)
{
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
...
...
@@ -62,7 +62,7 @@ static ssize_t netlink_write(struct file * file, const char * buf,
struct
msghdr
msg
;
struct
iovec
iov
;
iov
.
iov_base
=
(
void
*
)
buf
;
iov
.
iov_base
=
(
void
__user
*
)
buf
;
iov
.
iov_len
=
count
;
msg
.
msg_name
=
NULL
;
msg
.
msg_namelen
=
0
;
...
...
@@ -78,7 +78,7 @@ static ssize_t netlink_write(struct file * file, const char * buf,
* Read a message from the kernel side of the communication link
*/
static
ssize_t
netlink_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_t
netlink_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
pos
)
{
struct
inode
*
inode
=
file
->
f_dentry
->
d_inode
;
...
...
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