fuchsia.hardware.block

PROTOCOLS

Block

Defined in fuchsia.hardware.block/block.fidl

GetInfo

Request

NameType

Response

NameType
status zx/status
info BlockInfo?

GetStats

Request

NameType
clear bool

Response

NameType
status zx/status
stats BlockStats?

GetFifo

Request

NameType

Response

NameType
status zx/status
fifo handle<fifo>?

AttachVmo

Request

NameType
vmo handle<vmo>

Response

NameType
status zx/status
vmoid VmoId?

CloseFifo

Request

NameType

Response

NameType
status zx/status

RebindDevice

Request

NameType

Response

NameType
status zx/status

InspectVmoProvider

Defined in fuchsia.hardware.block/ftl.fidl

It is treated as a separate protocol for extension if necessary.

GetVmo

Requests the inspect vmo from the entity.

  • |vmo| has |ZX_RIGHTS_DUPLICATE|, |ZX_RIGHTS_TRANSFER|, |ZX_RIGHTS_READ|

Request

NameType

Response

NameType
result InspectVmoProvider_GetVmo_Result

Ftl

Defined in fuchsia.hardware.block/ftl.fidl

GetVmo

Requests the inspect vmo from the entity.

  • |vmo| has |ZX_RIGHTS_DUPLICATE|, |ZX_RIGHTS_TRANSFER|, |ZX_RIGHTS_READ|

Request

NameType

Response

NameType
result InspectVmoProvider_GetVmo_Result

Format

Discards previous contents and reinitializes the device.

Request

NameType

Response

NameType
status zx/status

STRUCTS

BlockInfo

Defined in fuchsia.hardware.block/block.fidl

NameTypeDescriptionDefault
block_count uint64 No default
block_size uint32 No default
max_transfer_size uint32 No default
flags uint32 No default
reserved uint32 No default

BlockStats

Defined in fuchsia.hardware.block/block.fidl

NameTypeDescriptionDefault
read fuchsia.storage.metrics/CallStat No default
write fuchsia.storage.metrics/CallStat No default
trim fuchsia.storage.metrics/CallStat No default
flush fuchsia.storage.metrics/CallStat No default
barrier_before fuchsia.storage.metrics/CallStat No default
barrier_after fuchsia.storage.metrics/CallStat No default

VmoId

Defined in fuchsia.hardware.block/block.fidl

NameTypeDescriptionDefault
id uint16 No default

InspectVmoProvider_GetVmo_Response

Defined in fuchsia.hardware.block/ftl.fidl

NameTypeDescriptionDefault
vmo handle<vmo> No default

UNIONS

InspectVmoProvider_GetVmo_Result

Defined in fuchsia.hardware.block/ftl.fidl

NameTypeDescription
response InspectVmoProvider_GetVmo_Response
err zx/status

CONSTANTS

NameValueTypeDescription
FLAG_READONLY 1 uint32
FLAG_REMOVABLE 2 uint32
FLAG_BOOTPART 4 uint32
FLAG_TRIM_SUPPORT 8 uint32
MAX_TRANSFER_UNBOUNDED 4294967295 uint32
VMOID_INVALID 0 uint16