---
name: "skb_needs_linearize"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_needs_linearize"
---

# skb\_needs\_linearize(9)

check if we need to linearize a given skb depending on the given device features.

## NAME

skb\_needs\_linearize - check if we need to linearize a given skb depending on the given device features.

## SYNOPSIS

**bool skb\_needs\_linearize(struct sk\_buff \*** *skb***, netdev\_features\_t** *features***);**

## ARGUMENTS

*skb*

socket buffer to check

*features*

net device features

## DESCRIPTION

Returns true if either: 1. skb has frag\_list and the device doesn't support FRAGLIST, or 2. skb is fragmented and the device does not support SG.

## COPYRIGHT
