---
name: "nand_block_checkbad"
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_block_checkbad"
---

# nand\_block\_checkbad(9)

\[GENERIC\] Check if a block is marked bad

## NAME

nand\_block\_checkbad - \[GENERIC\] Check if a block is marked bad

## SYNOPSIS

**int nand\_block\_checkbad(struct mtd\_info \*** *mtd***, loff\_t** *ofs***, int** *allowbbt***);**

## ARGUMENTS

*mtd*

MTD device structure

*ofs*

offset from device start

*allowbbt*

1, if its allowed to access the bbt area

## DESCRIPTION

Check, if the block is bad. Either by reading the bad block table or calling of the scan function.

## AUTHOR

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

Author.

## COPYRIGHT
