'\" t .\" Title: zerocopy_sg_from_iter .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ZEROCOPY_SG_FROM_ITE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_iter \- Build a zerocopy datagram from an iov_iter .SH "SYNOPSIS" .HP \w'int\ zerocopy_sg_from_iter('u .BI "int zerocopy_sg_from_iter(struct\ sk_buff\ *\ " "skb" ", struct\ iov_iter\ *\ " "from" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 buffer to copy .RE .PP \fIfrom\fR .RS 4 the source to copy 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 "COPYRIGHT" .br