Module asynchronous

Source

Structsยง

BlockAsync
Virtio device for exposing block level read/write operations on a host file.
DiskState ๐Ÿ”’
Tracks the state of an anynchronous disk.
WorkerSharedState ๐Ÿ”’
Disk state which can be modified by other worker threads

Enumsยง

ControlError ๐Ÿ”’
Errors that happen in block outside of executing a request. This includes errors during resize and flush operations.
ExecuteError ๐Ÿ”’
LogLevel ๐Ÿ”’
WorkerCmd ๐Ÿ”’

Constantsยง

DEFAULT_NUM_QUEUES ๐Ÿ”’
DEFAULT_QUEUE_SIZE ๐Ÿ”’
DISCARD_SECTOR_ALIGNMENT ๐Ÿ”’
ID_LEN ๐Ÿ”’
Maximum length of the virtio-block ID string field.
MAX_DISCARD_SECTORS ๐Ÿ”’
MAX_DISCARD_SEG ๐Ÿ”’
MAX_WRITE_ZEROES_SECTORS ๐Ÿ”’
MAX_WRITE_ZEROES_SEG ๐Ÿ”’
SECTOR_SHIFT ๐Ÿ”’
SECTOR_SIZE ๐Ÿ”’

Functionsยง

flush_disk ๐Ÿ”’
Periodically flushes the disk when the given timer fires.
handle_command_tube ๐Ÿ”’
handle_queue ๐Ÿ”’
process_one_chain ๐Ÿ”’
Process one descriptor chain asynchronously.
process_one_request ๐Ÿ”’
resize ๐Ÿ”’
run_worker ๐Ÿ”’

Type Aliasesยง

BlockId ๐Ÿ”’
Virtio block device identifier. This is an ASCII string terminated by a \0, unless all 20 bytes are used, in which case the \0 terminator is omitted.