Crate scsi_core

Crate scsi_core 

Source
Expand description

Core SCSI traits and types for the OpenVMM storage stack.

Defines the AsyncScsiDisk trait — the interface between SCSI transport layers (storvsp, IDE/ATAPI) and SCSI device implementations (SimpleScsiDisk, SimpleScsiDvd). Also defines Request, ScsiResult, and save/restore types for SCSI devices.

Implementations must fit within ASYNC_SCSI_DISK_STACK_SIZE or the returned future will be heap-allocated via StackFuture::from_or_box.

Modules§

save_restore
SCSI device saved state definitions.

Structs§

Request
A SCSI request.
ResolveScsiDeviceHandleParams
Parameters used when ersolving [ScsiDeviceHandleKind].
ResolvedScsiDevice
A resolved AsyncScsiDisk.
ScsiResult
The result of a SCSI request.

Constants§

ASYNC_SCSI_DISK_STACK_SIZE
The amount of space reserved for an AsyncScsiDisk-returned future

Traits§

AsyncScsiDisk
Trait for issuing SCSI device requests.
ScsiSaveRestore
Trait to save/restore SCSI devices.