get_bbt_block(9)

get_bbt_block9

Get the first valid eraseblock suitable to store a bbt

Usage

int get_bbt_block(struct nand_chip * this, struct nand_bbt_descr * td, struct nand_bbt_descr * md, int chip);

Arguments

this

the NAND device

td

the BBT description

md

the mirror BBT descriptor

chip

the CHIP selector

Overview

This functions returns a positive block number pointing a valid eraseblock suitable to store a BBT (i.e. in the range reserved for BBT), or -ENOSPC if all blocks are already used of marked bad. If td->pages[chip] was already pointing to a valid block we re-use it, otherwise we search for the next valid one.

Author

Thomas Gleixner <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.