write_bbt — [GENERIC] (Re)write the bad block table
int write_bbt
(struct mtd_info * mtd, uint8_t * buf, struct nand_bbt_descr * td, struct nand_bbt_descr * md, int chipsel);
MTD device structure
temporary buffer
descriptor for the bad block table
descriptor for the bad block table mirror
selector for a specific chip, -1 for all
(Re)write the bad block table