.\" 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 "SEARCH_BBT" "9" "09 October 2005" "" "" .SH NAME search_bbt \- [GENERIC] scan the device for a specific bad block table .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int search_bbt (struct mtd_info * \fImtd\fB, uint8_t * \fIbuf\fB, struct nand_bbt_descr * \fItd\fB); \fR .SH "ARGUMENTS" .TP \fB\fImtd\fB\fR MTD device structure .TP \fB\fIbuf\fB\fR temporary buffer .TP \fB\fItd\fB\fR descriptor for the bad block table .SH "DESCRIPTION" .PP Read the bad block table by searching for a given ident pattern. Search is preformed either from the beginning up or from the end of the device downwards. The search starts always at the start of a block. If the option NAND_BBT_PERCHIP is given, each chip is searched for a bbt, which contains the bad block information of this chip. This is neccecary to provide support for certain DOC devices. .PP The bbt ident pattern resides in the oob area of the first page in a block.