'\" t .\" Title: nand_scan_bbt .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "NAND_SCAN_BBT" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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" nand_scan_bbt \- [NAND Interface] scan, find, read and maybe create bad block table(s) .SH "SYNOPSIS" .HP \w'int\ nand_scan_bbt('u .BI "int nand_scan_bbt(struct\ mtd_info\ *\ " "mtd" ", struct\ nand_bbt_descr\ *\ " "bd" ");" .SH "ARGUMENTS" .PP \fImtd\fR .RS 4 MTD device structure .RE .PP \fIbd\fR .RS 4 descriptor for the good/bad block search pattern .RE .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\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br