Skip to main content

Module nvme

Module nvme 

Source

Structsยง

Capability ๐Ÿ”’
Command ๐Ÿ”’
Completion ๐Ÿ”’
CompletionEntry ๐Ÿ”’
ControllerConfig ๐Ÿ”’
ControllerStatus ๐Ÿ”’
IdentifyControllerData ๐Ÿ”’
Identify Controller data (partial : fields we need).
IdentifyNamespaceData ๐Ÿ”’
Identify Namespace data (first 384 bytes needed). Layout per NVMe spec: bytes 0-73 are explicit fields, 74-127 reserved, 128-383 LBAF[0..64].
IoQueue ๐Ÿ”’
IoQueuePair ๐Ÿ”’
LbaFormat ๐Ÿ”’
LBA Format descriptor (4 bytes each, starting at byte 128 of Identify Namespace).
NvmeCompletionResult
NvmeController
NvmeNamespace
Queue ๐Ÿ”’
QueuePair ๐Ÿ”’
Registers ๐Ÿ”’
Submission ๐Ÿ”’
Version ๐Ÿ”’
VolatileCell ๐Ÿ”’

Enumsยง

NvmeError ๐Ÿ”’

Constantsยง

ADMIN_CQE_ERROR ๐Ÿ”’
IO_QUEUE_SIZE ๐Ÿ”’
MAX_IO_COMMANDS ๐Ÿ”’
MAX_PRP_ENTRIES ๐Ÿ”’
NVME_PAGE_SIZE ๐Ÿ”’

Staticsยง

NVME_CONTROLLERS ๐Ÿ”’
NVME_INITIALIZED ๐Ÿ”’
NVME_IRQ_LINE

Traitsยง

QueueType ๐Ÿ”’

Functionsยง

build_prp_list ๐Ÿ”’ โš 
Build PRP (Physical Region Page) list for a physically contiguous buffer.
get_first_controller
handle_interrupt
init
is_available
list_controllers
rdtsc ๐Ÿ”’
Read the TSC (Time Stamp Counter).
regs_read64 ๐Ÿ”’ โš 
Read a 64-bit register from the NVMe controller.
tsc_deadline_ms ๐Ÿ”’
Get a TSC deadline for ms milliseconds from now.
tsc_expired ๐Ÿ”’
Check if a TSC deadline has expired.
tsc_khz ๐Ÿ”’
Return the calibrated TSC frequency in KHz, or a fallback (3 GHz).
tsc_to_ms ๐Ÿ”’
Convert TSC ticks to approximate milliseconds using calibrated frequency.