'\" t .\" Title: skb_needs_linearize .\" 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_NEEDS_LINEARIZE" "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_needs_linearize \- check if we need to linearize a given skb depending on the given device features\&. .SH "SYNOPSIS" .HP \w'bool\ skb_needs_linearize('u .BI "bool skb_needs_linearize(struct\ sk_buff\ *\ " "skb" ", netdev_features_t\ " "features" ");" .SH "ARGUMENTS" .PP \fIstruct sk_buff * skb\fR .RS 4 socket buffer to check .RE .PP \fInetdev_features_t features\fR .RS 4 net device features .RE .SH "DESCRIPTION" .PP Returns true if either: 1\&. skb has frag_list and the device doesn\*(Aqt support FRAGLIST, or 2\&. skb is fragmented and the device does not support SG\&. .SH "COPYRIGHT" .br