.\" 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 "CHECK_CREATE" "9" "09 October 2005" "" ""
.SH NAME
check_create \- [GENERIC] create and write bbt(s) if neccecary
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int check_create (struct mtd_info * \fImtd\fB, uint8_t * \fIbuf\fB, struct nand_bbt_descr * \fIbd\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImtd\fB\fR
MTD device structure
.TP
\fB\fIbuf\fB\fR
temporary buffer
.TP
\fB\fIbd\fB\fR
descriptor for the good/bad block search pattern
.SH "DESCRIPTION"
.PP
The function checks the results of the previous call to read_bbt
and creates / updates the bbt(s) if neccecary
Creation is neccecary if no bbt was found for the chip/device
Update is neccecary if one of the tables is missing or the
version nr. of one table is less than the other