zerocopy_sg_from_iovec(9)

zerocopy_sg_from_iovec9

Build a zerocopy datagram from an iovec

Usage

int zerocopy_sg_from_iovec(struct sk_buff * skb, const struct iovec * from, int offset, size_t count);

Arguments

skb

buffer to copy

from

io vector to copy from

offset

offset in the io vector to start copying from

count

amount of vectors to copy to buffer from

Overview

The function will first copy up to headlen, and then pin the userspace pages and build frags through them.

Returns 0, -EFAULT or -EMSGSIZE.

Note

the iovec is not modified during the copy

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.