- int zerocopy_sg_from_iovec(struct sk_buff * skb, const struct iovec * from, int offset, size_t count);
- buffer to copy
- io vector to copy from
- offset in the io vector to start copying from
- amount of vectors to copy to buffer from
The function will first copy up to headlen, and then pin the userspace pages and build frags through them.
Returns 0, -EFAULT or -EMSGSIZE.
the iovec is not modified during the copy