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

# write\_bbt(9)

\[GENERIC\] (Re)write the bad block table

## NAME

write\_bbt - \[GENERIC\] (Re)write the bad block table

## SYNOPSIS

**int write\_bbt(struct mtd\_info \*** *mtd***, uint8\_t \*** *buf***, struct nand\_bbt\_descr \*** *td***, struct nand\_bbt\_descr \*** *md***, int** *chipsel***);**

## ARGUMENTS

*mtd*

MTD device structure

*buf*

temporary buffer

*td*

descriptor for the bad block table

*md*

descriptor for the bad block table mirror

*chipsel*

selector for a specific chip, -1 for all

## DESCRIPTION

(Re)write the bad block table.

## AUTHOR

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

Author.

## COPYRIGHT
