Scroll to navigation

WRITE_BBT(9) Internal Functions Provided WRITE_BBT(9)

NAME

write_bbt - [GENERIC] (Re)write the bad block table

SYNOPSIS

int write_bbt(struct mtd_info * mtd, uint8_t * buf, struct nand_bbt_descr * td, struct nand_bbt_descr * md, int chipsel);

ARGUMENTS

struct mtd_info * mtd

MTD device structure

uint8_t * buf

temporary buffer

struct nand_bbt_descr * td

descriptor for the bad block table

struct nand_bbt_descr * md

descriptor for the bad block table mirror

int chipsel

selector for a specific chip, -1 for all

DESCRIPTION

(Re)write the bad block table.

AUTHOR

Thomas Gleixner <tglx@linutronix.de>

Author.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.12