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

# nand\_scan\_bbt(9)

\[NAND Interface\] scan, find, read and maybe create bad block table(s)

## NAME

nand\_scan\_bbt - \[NAND Interface\] scan, find, read and maybe create bad block table(s)

## SYNOPSIS

**int nand\_scan\_bbt(struct mtd\_info \*** *mtd***, struct nand\_bbt\_descr \*** *bd***);**

## ARGUMENTS

*mtd*

MTD device structure

*bd*

descriptor for the good/bad block search pattern

## DESCRIPTION

The function checks, if a bad block table(s) is/are already available. If not it scans the device for manufacturer marked good / bad blocks and writes the bad block table(s) to the selected place.

The bad block table memory is allocated here. It must be freed by calling the nand\_free\_bbt function.

## AUTHOR

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

Author.

## COPYRIGHT
