class BlockDriver

Defined at line 288 of file ../../src/devices/block/drivers/virtio/block.h

Public Members

static const char[] kDriverName

Public Methods

void BlockDriver (fdf::DriverStartArgs start_args, fdf::UnownedSynchronizedDispatcher dispatcher)

Defined at line 294 of file ../../src/devices/block/drivers/virtio/block.h

zx::result<> Start ()

Defined at line 943 of file ../../src/devices/block/drivers/virtio/block.cc

void PrepareStop (fdf::PrepareStopCompleter completer)

Defined at line 1030 of file ../../src/devices/block/drivers/virtio/block.cc

void BlockImplQuery (block_info_t * info, size_t * bopsz)

ddk::BlockImplProtocol functions passed through to BlockDevice.

Defined at line 1037 of file ../../src/devices/block/drivers/virtio/block.cc

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

Defined at line 1047 of file ../../src/devices/block/drivers/virtio/block.cc

void AddChild (AddChildRequestView request, AddChildCompleter::Sync & completer)

fuchsia.driver.framework.Node

Defined at line 1057 of file ../../src/devices/block/drivers/virtio/block.cc

Protected Methods

BlockDevice & block_device ()

Exposed for testing

Defined at line 312 of file ../../src/devices/block/drivers/virtio/block.h

zx::result<std::unique_ptr<BlockDevice>> CreateBlockDevice ()

Override to inject dependency for unit testing.

Defined at line 1011 of file ../../src/devices/block/drivers/virtio/block.cc