1STRUCT NAND_BBT_DESC(9)           Structures           STRUCT NAND_BBT_DESC(9)
2
3
4

NAME

6       struct_nand_bbt_descr - bad block table descriptor
7

SYNOPSIS

9       struct nand_bbt_descr {
10         int options;
11         int pages[NAND_MAX_CHIPS];
12         int offs;
13         int veroffs;
14         uint8_t version[NAND_MAX_CHIPS];
15         int len;
16         int maxblocks;
17         int reserved_block_code;
18         uint8_t * pattern;
19       };
20

MEMBERS

22       options
23           options for this descriptor
24
25       pages[NAND_MAX_CHIPS]
26           the page(s) where we find the bbt, used with option BBT_ABSPAGE
27           when bbt is searched, then we store the found bbts pages here. Its
28           an array and supports up to 8 chips now
29
30       offs
31           offset of the pattern in the oob area of the page
32
33       veroffs
34           offset of the bbt version counter in the oob are of the page
35
36       version[NAND_MAX_CHIPS]
37           version read from the bbt page during scan
38
39       len
40           length of the pattern, if 0 no pattern check is performed
41
42       maxblocks
43           maximum number of blocks to search for a bbt. This number of blocks
44           is reserved at the end of the device where the tables are written.
45
46       reserved_block_code
47           if non-0, this pattern denotes a reserved (rather than bad) block
48           in the stored bbt
49
50       pattern
51           pattern to identify bad block table or factory marked good / bad
52           blocks, can be NULL, if len = 0
53

DESCRIPTION

55       Descriptor for the bad block table marker and the descriptor for the
56       pattern which identifies good and bad blocks. The assumption is made
57       that the pattern and the version count are always located in the oob
58       area of the first block.
59

AUTHOR

61       Thomas Gleixner <tglx@linutronix.de>
62           Author.
63
65Kernel Hackers Manual 2.6.         June 2019           STRUCT NAND_BBT_DESC(9)
Impressum