---
name: "check_create"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/check_create"
---

# check\_create(9)

\[GENERIC\] create and write bbt(s) if necessary

## NAME

check\_create - \[GENERIC\] create and write bbt(s) if necessary

## SYNOPSIS

**int check\_create(struct mtd\_info \*** *mtd***, uint8\_t \*** *buf***, struct nand\_bbt\_descr \*** *bd***);**

## ARGUMENTS

*mtd*

MTD device structure

*buf*

temporary buffer

*bd*

descriptor for the good/bad block search pattern

## DESCRIPTION

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.

## AUTHOR

**Thomas Gleixner** \<tglx@linutronix.de\>

Author.

## COPYRIGHT
