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
232365f6
Commit
232365f6
authored
Nov 10, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bury skb_copy_to_page()
no callers since 3.0 Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
08adb7da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
include/net/sock.h
include/net/sock.h
+0
-23
No files found.
include/net/sock.h
View file @
232365f6
...
...
@@ -1884,29 +1884,6 @@ static inline int skb_copy_to_page_nocache(struct sock *sk, char __user *from,
return
0
;
}
static
inline
int
skb_copy_to_page
(
struct
sock
*
sk
,
char
__user
*
from
,
struct
sk_buff
*
skb
,
struct
page
*
page
,
int
off
,
int
copy
)
{
if
(
skb
->
ip_summed
==
CHECKSUM_NONE
)
{
int
err
=
0
;
__wsum
csum
=
csum_and_copy_from_user
(
from
,
page_address
(
page
)
+
off
,
copy
,
0
,
&
err
);
if
(
err
)
return
err
;
skb
->
csum
=
csum_block_add
(
skb
->
csum
,
csum
,
skb
->
len
);
}
else
if
(
copy_from_user
(
page_address
(
page
)
+
off
,
from
,
copy
))
return
-
EFAULT
;
skb
->
len
+=
copy
;
skb
->
data_len
+=
copy
;
skb
->
truesize
+=
copy
;
sk
->
sk_wmem_queued
+=
copy
;
sk_mem_charge
(
sk
,
copy
);
return
0
;
}
/**
* sk_wmem_alloc_get - returns write allocations
* @sk: socket
...
...
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