.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SKB_FIND_TEXT" "9" "09 October 2005" "" "" .SH NAME skb_find_text \- Find a text pattern in skb data .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp unsigned int skb_find_text (struct sk_buff * \fIskb\fB, unsigned int \fIfrom\fB, unsigned int \fIto\fB, struct ts_config * \fIconfig\fB, struct ts_state * \fIstate\fB); \fR .SH "ARGUMENTS" .TP \fB\fIskb\fB\fR the buffer to look in .TP \fB\fIfrom\fB\fR search offset .TP \fB\fIto\fB\fR search limit .TP \fB\fIconfig\fB\fR textsearch configuration .TP \fB\fIstate\fB\fR uninitialized textsearch state variable .SH "DESCRIPTION" .PP Finds a pattern in the skb data according to the specified textsearch configuration. Use \fBtextsearch_next\fR to retrieve subsequent occurrences of the pattern. Returns the offset to the first occurrence or UINT_MAX if no match was found.