1NAND_DEFAULT_BLOCK_M(9)   Internal Functions Provided  NAND_DEFAULT_BLOCK_M(9)
2
3
4

NAME

6       nand_default_block_markbad - [DEFAULT] mark a block bad
7

SYNOPSIS

9       int nand_default_block_markbad(struct mtd_info * mtd, loff_t ofs);
10

ARGUMENTS

12       mtd
13           MTD device structure
14
15       ofs
16           offset from device start
17

DESCRIPTION

19       This is the default implementation, which can be overridden by a
20       hardware specific driver. We try operations in the following order,
21       according to our bbt_options (NAND_BBT_NO_OOB_BBM and
22       NAND_BBT_USE_FLASH): (1) erase the affected block, to allow OOB marker
23       to be written cleanly (2) update in-memory BBT (3) write bad block
24       marker to OOB area of affected block (4) update flash-based BBT Note
25       that we retain the first error encountered in (3) or (4), finish the
26       procedures, and dump the error in the end.
27

AUTHOR

29       Thomas Gleixner <tglx@linutronix.de>
30           Author.
31
33Kernel Hackers Manual 3.10         June 2019           NAND_DEFAULT_BLOCK_M(9)
Impressum