Name

nand_create_default_bbt_descr — [Internal] Creates a BBT descriptor structure

Synopsis

int fsfuncnand_create_default_bbt_descr (struct nand_chip * this);
 

Arguments

this

NAND chip to create descriptor for

Description

This function allocates and initializes a nand_bbt_descr for BBM detection based on the properties of this. The new descriptor is stored in this->badblock_pattern. Thus, this->badblock_pattern should be NULL when passed to this function.

TODO

Handle other flags, replace other static structs (e.g. handle NAND_BBT_FLASH for flash-based BBT, replace smallpage_flashbased)