⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module mass_storage

Module mass_storage 

Source
Expand description

USB Mass Storage Class Driver

Implements the USB Mass Storage Bulk-Only Transport (BOT) protocol with SCSI Transparent Command Set for block device access. Supports standard SCSI commands: INQUIRY, TEST UNIT READY, READ CAPACITY(10), READ(10), WRITE(10), and REQUEST SENSE.

Reference: USB Mass Storage Class Bulk-Only Transport Specification Rev 1.0

Structs§

CommandBlockWrapper
Command Block Wrapper (31 bytes)
CommandStatusWrapper
Command Status Wrapper (13 bytes)
InquiryData
Parsed SCSI INQUIRY response
MassStorageDevice
USB Mass Storage device using Bulk-Only Transport (BOT)
SenseData
Parsed SCSI sense data from REQUEST SENSE response

Enums§

CswStatus
CSW status values
MassStorageState
Mass storage device states
SenseKey
SCSI sense keys for error reporting

Constants§

CBW_DIRECTION_IN
CBW_DIRECTION_OUT
CBW direction flags
CBW_SIGNATURE
CBW signature: “USBC” in little-endian
CSW_SIGNATURE
CSW signature: “USBS” in little-endian

Traits§

BlockDevice
Trait for block-level I/O on a storage device