Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.badblock

PROTOCOLS

BadBlock

Defined in fuchsia.hardware.badblock/bad-block.banjo

GetBadBlockList

Fills in |bad_blocks| with a list of bad blocks, up until |bad_blocks_count|. The order of blocks is undefined. |bad_blocks_actual| will be filled in with the actual number of bad blocks. It is recommended to first make call with |bad_blocks_count| equal to 0 in order to determine how large the |bad_blocks| is.

Request

NameType

Response

NameType
s zx/status
bad_blocks vector<uint32>

MarkBlockBad

Sets |block| as bad. If block is already marked bad, it has no effect.

Request

NameType
block uint32

Response

NameType
s zx/status

STRUCTS