.\" 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 "CHECK_PATTERN" "9" "09 October 2005" "" ""
.SH NAME
check_pattern \- [GENERIC] check if a pattern is in the buffer
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int check_pattern (uint8_t * \fIbuf\fB, int \fIlen\fB, int \fIpaglen\fB, struct nand_bbt_descr * \fItd\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbuf\fB\fR
the buffer to search
.TP
\fB\fIlen\fB\fR
the length of buffer to search
.TP
\fB\fIpaglen\fB\fR
the pagelength
.TP
\fB\fItd\fB\fR
search pattern descriptor
.SH "DESCRIPTION"
.PP
Check for a pattern at the given place. Used to search bad block
tables and good / bad block identifiers.
If the SCAN_EMPTY option is set then check, if all bytes except the
pattern area contain 0xff