1SKB_ZEROCOPY(9) Linux Networking SKB_ZEROCOPY(9)
2
3
4
6 skb_zerocopy - Zero copy skb to skb
7
9 int skb_zerocopy(struct sk_buff * to, struct sk_buff * from, int len,
10 int hlen);
11
13 to
14 destination buffer
15
16 from
17 -- undescribed --
18
19 len
20 number of bytes to copy from source buffer
21
22 hlen
23 size of linear headroom in destination buffer
24
26 Copies up to `len` bytes from `from` to `to` by creating references to
27 the frags in the source buffer.
28
29 The `hlen` as calculated by skb_zerocopy_headlen specifies the headroom
30 in the `to` buffer.
31
33 everything is OK -ENOMEM: couldn't orphan frags of from due to lack of
34 memory -EFAULT: skb_copy_bits found some problem with skb geometry
35
37Kernel Hackers Manual 3.10 June 2019 SKB_ZEROCOPY(9)