'\" t .\" Title: zerocopy_sg_from_iovec .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "ZEROCOPY_SG_FROM_IOV" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" zerocopy_sg_from_iovec \- Build a zerocopy datagram from an iovec .SH "SYNOPSIS" .HP \w'int\ zerocopy_sg_from_iovec('u .BI "int zerocopy_sg_from_iovec(struct\ sk_buff\ *\ " "skb" ", const\ struct\ iovec\ *\ " "from" ", int\ " "offset" ", size_t\ " "count" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 buffer to copy .RE .PP \fIfrom\fR .RS 4 io vector to copy from .RE .PP \fIoffset\fR .RS 4 offset in the io vector to start copying from .RE .PP \fIcount\fR .RS 4 amount of vectors to copy to buffer from .RE .SH "DESCRIPTION" .PP The function will first copy up to headlen, and then pin the userspace pages and build frags through them\&. .PP Returns 0, \-EFAULT or \-EMSGSIZE\&. .SH "NOTE" .PP the iovec is not modified during the copy .SH "COPYRIGHT" .br