zerocopy_sg_from_iter(9)

zerocopy_sg_from_iter9

Build a zerocopy datagram from an iov_iter

Usage

int zerocopy_sg_from_iter(struct sk_buff * skb, struct iov_iter * from);

Arguments

skb

buffer to copy

from

the source to copy 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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.