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

NAME

6       search_bbt - [GENERIC] scan the device for a specific bad block table
7

SYNOPSIS

9       int search_bbt(struct mtd_info * mtd, uint8_t * buf,
10                      struct nand_bbt_descr * td);
11

ARGUMENTS

13       mtd
14           MTD device structure
15
16       buf
17           temporary buffer
18
19       td
20           descriptor for the bad block table
21

DESCRIPTION

23       Read the bad block table by searching for a given ident pattern. Search
24       is preformed either from the beginning up or from the end of the device
25       downwards. The search starts always at the start of a block. If the
26       option NAND_BBT_PERCHIP is given, each chip is searched for a bbt,
27       which contains the bad block information of this chip. This is
28       necessary to provide support for certain DOC devices.
29
30       The bbt ident pattern resides in the oob area of the first page in a
31       block.
32

AUTHOR

34       Thomas Gleixner <tglx@linutronix.de>
35           Author.
36
38Kernel Hackers Manual 2.6.       November 2011                   SEARCH_BBT(9)
Impressum