.\" 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 "CREATE_BBT" "9" "09 October 2005" "" ""
.SH NAME
create_bbt \- [GENERIC] Create a bad block table by scanning the device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int create_bbt (struct mtd_info * \fImtd\fB, uint8_t * \fIbuf\fB, struct nand_bbt_descr * \fIbd\fB, int \fIchip\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImtd\fB\fR
MTD device structure
.TP
\fB\fIbuf\fB\fR
temporary buffer
.TP
\fB\fIbd\fB\fR
descriptor for the good/bad block search pattern
.TP
\fB\fIchip\fB\fR
create the table for a specific chip, -1 read all chips.
Applies only if NAND_BBT_PERCHIP option is set
.SH "DESCRIPTION"
.PP
Create a bad block table by scanning the device
for the given good/bad block identify pattern