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

Ftl

Defined in fuchsia.hardware.block/ftl.fidl

Format

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

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