---
name: "skb_find_text"
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_find_text"
---

# skb\_find\_text(9)

Find a text pattern in skb data

## NAME

skb\_find\_text - Find a text pattern in skb data

## SYNOPSIS

**unsigned int skb\_find\_text(struct sk\_buff \*** *skb***, unsigned int** *from***, unsigned int** *to***, struct ts\_config \*** *config***);**

## ARGUMENTS

*skb*

the buffer to look in

*from*

search offset

*to*

search limit

*config*

textsearch configuration

## DESCRIPTION

Finds a pattern in the skb data according to the specified textsearch configuration. Use **textsearch\_next** to retrieve subsequent occurrences of the pattern. Returns the offset to the first occurrence or UINT\_MAX if no match was found.

## COPYRIGHT
