'\" t .\" Title: check_create .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Internal Functions Provided .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "CHECK_CREATE" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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" check_create \- [GENERIC] create and write bbt(s) if necessary .SH "SYNOPSIS" .HP \w'int\ check_create('u .BI "int check_create(struct\ mtd_info\ *\ " "mtd" ", uint8_t\ *\ " "buf" ", struct\ nand_bbt_descr\ *\ " "bd" ");" .SH "ARGUMENTS" .PP \fImtd\fR .RS 4 MTD device structure .RE .PP \fIbuf\fR .RS 4 temporary buffer .RE .PP \fIbd\fR .RS 4 descriptor for the good/bad block search pattern .RE .SH "DESCRIPTION" .PP The function checks the results of the previous call to read_bbt and creates / updates the bbt(s) if necessary\&. Creation is necessary if no bbt was found for the chip/device\&. Update is necessary if one of the tables is missing or the version nr\&. of one table is less than the other\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br