read_bbt — [GENERIC] Read the bad block table starting from page
int read_bbt
(struct mtd_info * mtd, uint8_t * buf, int page, int num, int bits, int offs, int reserved_block_code);
MTD device structure
temporary buffer
the starting page
the number of bbt descriptors to read
number of bits per block
offset in the memory table
Pattern to identify reserved blocks
Read the bad block table starting from page.