'\" t .\" Title: skb_padto .\" 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 "SKB_PADTO" "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" skb_padto \- pad an skbuff up to a minimal size .SH "SYNOPSIS" .HP \w'int\ skb_padto('u .BI "int skb_padto(struct\ sk_buff\ *\ " "skb" ", unsigned\ int\ " "len" ");" .SH "ARGUMENTS" .PP \fIskb\fR .RS 4 buffer to pad .RE .PP \fIlen\fR .RS 4 minimal length .RE .SH "DESCRIPTION" .PP Pads up a buffer to ensure the trailing bytes exist and are blanked\&. If the buffer already contains sufficient data it is untouched\&. Otherwise it is extended\&. Returns zero on success\&. The skb is freed on error\&. .SH "COPYRIGHT" .br