Module devices::virtio::block::asynchronous
source ยท Structsยง
- 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 ๐
- ID_LEN ๐Maximum length of the virtio-block ID string field.
- MAX_DISCARD_SECTORS ๐
- MAX_DISCARD_SEG ๐
- 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.