NAND_DEFAULT_BLOCK_M(9) | Internal Functions Provided | NAND_DEFAULT_BLOCK_M(9) |
NAME¶
nand_default_block_markbad - [DEFAULT] mark a block bad
SYNOPSIS¶
int nand_default_block_markbad(struct mtd_info * mtd, loff_t ofs);
ARGUMENTS¶
mtd
MTD device structure
ofs
offset from device start
DESCRIPTION¶
This is the default implementation, which can be overridden by a hardware specific driver. We try operations in the following order, according to our bbt_options (NAND_BBT_NO_OOB_BBM and NAND_BBT_USE_FLASH): (1) erase the affected block, to allow OOB marker to be written cleanly (2) update in-memory BBT (3) write bad block marker to OOB area of affected block (4) update flash-based BBT Note that we retain the first error encountered in (3) or (4), finish the procedures, and dump the error in the end.
AUTHOR¶
Thomas Gleixner <tglx@linutronix.de>
Author.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |