---
name: "create_bbt"
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/create_bbt"
---

# create\_bbt(9)

\[GENERIC\] Create a bad block table by scanning the device

## NAME

create\_bbt - \[GENERIC\] Create a bad block table by scanning the device

## SYNOPSIS

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

## ARGUMENTS

*mtd*

MTD device structure

*buf*

temporary buffer

*bd*

descriptor for the good/bad block search pattern

*chip*

create the table for a specific chip, -1 read all chips; applies only if NAND\_BBT\_PERCHIP option is set

## DESCRIPTION

Create a bad block table by scanning the device for the given good/bad block identify pattern.

## AUTHOR

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

Author.

## COPYRIGHT
