'\" t .\" Title: create_bbt .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "CREATE_BBT" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "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" create_bbt \- [GENERIC] Create a bad block table by scanning the device .SH "SYNOPSIS" .HP \w'int\ create_bbt('u .BI "int create_bbt(struct\ mtd_info\ *\ " "mtd" ", uint8_t\ *\ " "buf" ", struct\ nand_bbt_descr\ *\ " "bd" ", int\ " "chip" ");" .SH "ARGUMENTS" .PP \fIstruct mtd_info * mtd\fR .RS 4 MTD device structure .RE .PP \fIuint8_t * buf\fR .RS 4 temporary buffer .RE .PP \fIstruct nand_bbt_descr * bd\fR .RS 4 descriptor for the good/bad block search pattern .RE .PP \fIint chip\fR .RS 4 create the table for a specific chip, \-1 read all chips; applies only if NAND_BBT_PERCHIP option is set .RE .SH "DESCRIPTION" .PP Create a bad block table by scanning the device for the given good/bad block identify pattern\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br