class BadBlock
Defined at line 20 of file ../../src/devices/nand/drivers/nandpart/bad-block.h
Interface for interacting with device bad blocks.
Protected Members
mutex lock_
vmo data_vmo_
vmo oob_vmo_
vector nand_op_
Public Methods
zx::result<std::shared_ptr<BadBlock>> Create (Config config)
Defined at line 11 of file ../../src/devices/nand/drivers/nandpart/bad-block.cc
void ~BadBlock ()
Defined at line 31 of file ../../src/devices/nand/drivers/nandpart/bad-block.h
zx::result<std::vector<uint32_t>> GetBadBlockList (uint32_t first_block, uint32_t last_block)
Returns a list of bad blocks between [first_block, last_block).
Defined at line 34 of file ../../src/devices/nand/drivers/nandpart/bad-block.h
zx_status_t MarkBlockBad (uint32_t block)
Marks a block bad and updates underlying storage.
Defined at line 40 of file ../../src/devices/nand/drivers/nandpart/bad-block.h
Protected Methods
void BadBlock (zx::vmo data_vmo, zx::vmo oob_vmo, std::vector<uint8_t> nand_op)
Defined at line 43 of file ../../src/devices/nand/drivers/nandpart/bad-block.h