read_abs_bbt — [GENERIC] Read the bad block table starting at a given page


int read_abs_bbt (struct mtd_info * mtd,
 uint8_t * buf,
 struct nand_bbt_descr * td,
 int chip);


struct mtd_info * mtd

MTD device structure

uint8_t * buf

temporary buffer

struct nand_bbt_descr * td

descriptor for the bad block table

int chip

read the table for a specific chip, -1 read all chips; applies only if NAND_BBT_PERCHIP option is set


Read the bad block table for all chips starting at a given page. We assume that the bbt bits are in consecutive order.