Skip to main content

Module virtio_block

Module virtio_block 

Source
Expand description

VirtIO Block Device driver

Provides disk I/O via VirtIO-blk protocol for QEMU/KVM environments. Implements the BlockDevice trait for integration with filesystem layers.

Reference: VirtIO spec v1.2, Section 5.2 (Block Device)

Modules§

features
VirtIO block device features

Structs§

BlockConfig 🔒
Block device configuration space
BlockRequestHeader
VirtIO block request header
VirtioBlockDevice
VirtIO Block Device driver

Enums§

BlockError
BlockStatus
VirtIO block request status
RequestType
VirtIO block request types

Constants§

SECTOR_SIZE
Block device sector size

Statics§

VIRTIO_BLOCK 🔒
Global VirtIO block device
VIRTIO_BLOCK_IRQ 🔒
VirtIO block IRQ line (will be set during init)

Traits§

BlockDevice
Block device trait (implemented by VirtIO-blk driver)

Functions§

get_device
Get the global VirtIO block device
get_irq
Get the VirtIO block IRQ line
handle_interrupt
Handle VirtIO block device interrupt
init
Initialize VirtIO block device