skb_zerocopy (9) - Linux Man Pages
skb_zerocopy: Zero copy skb to skb
skb_zerocopy - Zero copy skb to skb
int skb_zerocopy(struct sk_buff
*to, struct sk_buff *from, int len, int hlen);
- destination buffer
- source buffer
- number of bytes to copy from source buffer
- size of linear headroom in destination buffer
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.