fuchsia.hardware.block

PROTOCOLS

Block

Defined in fuchsia.hardware.block/block.fidl

GetInfo

Request

NameType

Response

NameType
status int32
info BlockInfo?

GetStats

Request

NameType
clear bool

Response

NameType
status int32
stats BlockStats?

GetFifo

Request

NameType

Response

NameType
status int32
fifo handle<fifo>?

AttachVmo

Request

NameType
vmo handle<vmo>

Response

NameType
status int32
vmoid VmoID?

CloseFifo

Request

NameType

Response

NameType
status int32

RebindDevice

Request

NameType

Response

NameType
status int32

Ftl

Defined in fuchsia.hardware.block/ftl.fidl

Format

Request

NameType

Response

NameType
status int32

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