other versions
GET_BBT_BLOCK(9) | Internal Functions Provided | GET_BBT_BLOCK(9) |
NAME¶
get_bbt_block - Get the first valid eraseblock suitable to store a BBTSYNOPSIS¶
int get_bbt_block(struct nand_chip * this, struct nand_bbt_descr * td, struct nand_bbt_descr * md, int chip);
ARGUMENTS¶
struct nand_chip * thisthe NAND device
struct nand_bbt_descr * td
the BBT description
struct nand_bbt_descr * md
the mirror BBT descriptor
int chip
the CHIP selector
DESCRIPTION¶
This functions returns a positive block number pointing a valid eraseblock suitable to store a BBT (i.e. in the range reserved for BBT), or -ENOSPC if all blocks are already used of marked bad. If td->pages[chip] was already pointing to a valid block we re-use it, otherwise we search for the next valid one.AUTHOR¶
Thomas Gleixner <tglx@linutronix.de>Author.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |