table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
SKB_ZEROCOPY(9) | Linux Networking | SKB_ZEROCOPY(9) |
NAME¶
skb_zerocopy - Zero copy skb to skbSYNOPSIS¶
int
skb_zerocopy(struct sk_buff * to,
struct sk_buff * from,
int len, int hlen);
ARGUMENTS¶
todestination buffer
from
source buffer
len
number of bytes to copy from source buffer
hlen
size of linear headroom in destination buffer
DESCRIPTION¶
Copies up to `len` bytes from `from` to `to` by creating references to the frags in the source buffer. The `hlen` as calculated by skb_zerocopy_headlen specifies the headroom in the `to` buffer. Return value: 0: everything is OK -ENOMEM: couldn't orphan frags of from due to lack of memory -EFAULT: skb_copy_bits found some problem with skb geometryCOPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |