.\" 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 "NAND_SCAN_BBT" "9" "09 October 2005" "" ""
.SH NAME
nand_scan_bbt \- [NAND Interface] scan, find, read and maybe create bad block table(s)
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int nand_scan_bbt (struct mtd_info * \fImtd\fB, struct nand_bbt_descr * \fIbd\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImtd\fB\fR
MTD device structure
.TP
\fB\fIbd\fB\fR
descriptor for the good/bad block search pattern
.SH "DESCRIPTION"
.PP
The function checks, if a bad block table(s) is/are already
available. If not it scans the device for manufacturer
marked good / bad blocks and writes the bad block table(s) to
the selected place.
.PP
The bad block table memory is allocated here. It must be freed
by calling the nand_free_bbt function.