class BlockImplProtocolClient
Defined at line 250 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
Public Members
static const uint32_t kProtocolId
Public Methods
void BlockImplProtocolClient ()
Defined at line 255 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void BlockImplProtocolClient (const block_impl_protocol_t * proto)
Defined at line 257 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void BlockImplProtocolClient (zx_device_t * parent)
Defined at line 260 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void BlockImplProtocolClient (zx_device_t * parent, const char * fragment_name)
Defined at line 271 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
zx_status_t CreateFromDevice (zx_device_t * parent, BlockImplProtocolClient * result)
Create a BlockImplProtocolClient from the given parent device + "fragment".
If ZX_OK is returned, the created object will be initialized in |result|.
Defined at line 285 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
zx_status_t CreateFromDevice (zx_device_t * parent, const char * fragment_name, BlockImplProtocolClient * result)
Create a BlockImplProtocolClient from the given parent device.
If ZX_OK is returned, the created object will be initialized in |result|.
Defined at line 300 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void GetProto (block_impl_protocol_t * proto)
Defined at line 312 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
bool is_valid ()
Defined at line 316 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void clear ()
Defined at line 319 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void Query (block_info_t * out_info, uint64_t * out_block_op_size)
Obtains the parameters of the block device (`block_info_t`) and the
required size of `block_txn_t`. The `block_txn_t`s submitted via
`Queue()` must have `block_op_size_out - sizeof(block_op_t)` bytes
available at the end of the structure for the use of the driver.
Defined at line 328 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h
void Queue (block_op_t * txn, block_impl_queue_callback callback, void * cookie)
Submits an I/O request for processing. Ownership of `op` is transferred
to callee until `completion_cb` is invoked. Success or failure will be
reported via the `completion_cb`. This callback may be called before the
`Queue()` method returns.
Defined at line 336 of file fidling/gen/sdk/fidl/fuchsia.hardware.block.driver/fuchsia.hardware.block.driver/banjo/cpp/fuchsia/hardware/block/driver/cpp/banjo.h