'\" t .\" Title: skb_append_datato_frags .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "SKB_APPEND_DATATO_FR" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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" skb_append_datato_frags \- append the user data to a skb .SH "SYNOPSIS" .HP \w'int\ skb_append_datato_frags('u .BI "int skb_append_datato_frags(struct\ sock\ *\ " "sk" ", struct\ sk_buff\ *\ " "skb" ", int\ (*" "getfrag" ")\ (void\ *from,\ char\ *to,\ int\ offset,\ int\ len,\ int\ odd,\ struct\ sk_buff\ *skb), void\ *\ " "from" ", int\ " "length" ");" .SH "ARGUMENTS" .PP \fIstruct sock * sk\fR .RS 4 sock structure .RE .PP \fIstruct sk_buff * skb\fR .RS 4 skb structure to be appended with user data\&. .RE .PP \fIint (*)(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) getfrag\fR .RS 4 call back function to be used for getting the user data .RE .PP \fIvoid * from\fR .RS 4 pointer to user message iov .RE .PP \fIint length\fR .RS 4 length of the iov message .RE .SH "DESCRIPTION" .PP This procedure append the user data in the fragment part of the skb if any page alloc fails user this procedure returns \-ENOMEM .SH "COPYRIGHT" .br