'\" t .\" Title: check_pattern .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "CHECK_PATTERN" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Internal Functions Provided" .\" ----------------------------------------------------------------- .\" * 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" check_pattern \- [GENERIC] check if a pattern is in the buffer .SH "SYNOPSIS" .HP \w'int\ check_pattern('u .BI "int check_pattern(uint8_t\ *\ " "buf" ", int\ " "len" ", int\ " "paglen" ", struct\ nand_bbt_descr\ *\ " "td" ");" .SH "ARGUMENTS" .PP \fIuint8_t * buf\fR .RS 4 the buffer to search .RE .PP \fIint len\fR .RS 4 the length of buffer to search .RE .PP \fIint paglen\fR .RS 4 the pagelength .RE .PP \fIstruct nand_bbt_descr * td\fR .RS 4 search pattern descriptor .RE .SH "DESCRIPTION" .PP Check for a pattern at the given place\&. Used to search bad block tables and good / bad block identifiers\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br