class NandOperation

Defined at line 26 of file ../../src/devices/block/drivers/ftl/nand_operation.h

Wrapper for nand Queue() protocol operations.

Public Methods

void NandOperation (size_t op_size)

Defined at line 35 of file ../../src/devices/block/drivers/ftl/nand_operation.h

void ~NandOperation ()

Defined at line 36 of file ../../src/devices/block/drivers/ftl/nand_operation.h

std::vector<zx::result<>> ExecuteBatch (OobDoubler * parent, cpp20::span<std::unique_ptr<NandOperation>> operation)

Will attempt to queue all operations in |operations| into |parent|, returning a collection of

the result of queueing and completing such operations. Unlike calling |Execute| in sequence,

this method will queue all operations before waiting, and will return once all successfully

queued operations are signalled.

Defined at line 99 of file ../../src/devices/block/drivers/ftl/nand_operation.cc

zx_status_t SetDataVmo (size_t num_bytes)

Creates a vmo and sets the handle on the nand_operation_t.

Defined at line 17 of file ../../src/devices/block/drivers/ftl/nand_operation.cc

zx_status_t SetOobVmo (size_t num_bytes)

Defined at line 31 of file ../../src/devices/block/drivers/ftl/nand_operation.cc

nand_operation_t * GetOperation ()

Defined at line 44 of file ../../src/devices/block/drivers/ftl/nand_operation.cc

zx::unowned_vmo GetVmo ()

Returns a type safe wrapper around the vmo handle in the operation.

Defined at line 45 of file ../../src/devices/block/drivers/ftl/nand_operation.h

void NandOperation (const NandOperation & )

Defined at line 50 of file ../../src/devices/block/drivers/ftl/nand_operation.h

void NandOperation (NandOperation && )

Defined at line 50 of file ../../src/devices/block/drivers/ftl/nand_operation.h

NandOperation & operator= (const NandOperation & )

Defined at line 50 of file ../../src/devices/block/drivers/ftl/nand_operation.h

NandOperation & operator= (NandOperation && )

Defined at line 50 of file ../../src/devices/block/drivers/ftl/nand_operation.h

zx_status_t Execute (OobDoubler * parent)

Executes the operation and returns the final operation status.

Defined at line 67 of file ../../src/devices/block/drivers/ftl/nand_operation.cc