class Device

Defined at line 23 of file ../../src/devices/block/drivers/block-verity/device.h

See ddk::Device in ddktl/device.h

Public Methods

void Device (zx_device_t * parent, DeviceInfo && info)

Implementation of the `mutable` read-write block device that does little more

than translate inbound block reads and writes to the appropriate block offset

in the underlying device, based on the block allocation.

Defined at line 21 of file ../../src/devices/block/drivers/block-verity/device.cc

zx_status_t DdkGetProtocol (uint32_t proto_id, void * out)

ddk::Device methods; see ddktl/device.h

Defined at line 26 of file ../../src/devices/block/drivers/block-verity/device.cc

void Device (const Device & )

Disallow copy, assign, and move.

Defined at line 28 of file ../../src/devices/block/drivers/block-verity/device.h

void Device (Device && )

Defined at line 29 of file ../../src/devices/block/drivers/block-verity/device.h

Device & operator= (const Device & )

Defined at line 30 of file ../../src/devices/block/drivers/block-verity/device.h

Device & operator= (Device && )

Defined at line 31 of file ../../src/devices/block/drivers/block-verity/device.h

void ~Device ()

Defined at line 33 of file ../../src/devices/block/drivers/block-verity/device.h

uint64_t op_size ()

Defined at line 35 of file ../../src/devices/block/drivers/block-verity/device.h

void DdkUnbind (ddk::UnbindTxn txn)

Defined at line 41 of file ../../src/devices/block/drivers/block-verity/device.cc

void DdkRelease ()

Defined at line 46 of file ../../src/devices/block/drivers/block-verity/device.cc

void BlockImplQuery (block_info_t * out_info, size_t * out_op_size)

ddk::BlockProtocol methods; see fuchsia/hardware/block/driver/cpp/banjo.h

Defined at line 51 of file ../../src/devices/block/drivers/block-verity/device.cc

void BlockImplQueue (block_op_t * block_op, block_impl_queue_callback completion_cb, void * cookie)

Defined at line 64 of file ../../src/devices/block/drivers/block-verity/device.cc

void BlockCallback (void * cookie, zx_status_t status, block_op_t * block)

The callback that we give to the underlying block device when we queue

operations against it. It simply translates block offsets back and completes the

matched block requests.

Defined at line 92 of file ../../src/devices/block/drivers/block-verity/device.cc

void BlockComplete (block_op_t * block, zx_status_t status)

Completes the block operation by calling the appropriate callback with the

appropriate status.

Defined at line 120 of file ../../src/devices/block/drivers/block-verity/device.cc