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

# mark\_bbt\_block\_bad(9)

Mark one of the block reserved for BBT bad

## NAME

mark\_bbt\_block\_bad - Mark one of the block reserved for BBT bad

## SYNOPSIS

**void mark\_bbt\_block\_bad(struct nand\_chip \*** *this***, struct nand\_bbt\_descr \*** *td***, int** *chip***, int** *block***);**

## ARGUMENTS

*this*

the NAND device

*td*

the BBT description

*chip*

the CHIP selector

*block*

the BBT block to mark

## DESCRIPTION

Blocks reserved for BBT can become bad. This functions is an helper to mark such blocks as bad. It takes care of updating the in-memory BBT, marking the block as bad using a bad block marker and invalidating the associated td-\>pages\[\] entry.

## AUTHOR

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

Author.

## COPYRIGHT
