Skip to main content

Module state_bank

Module state_bank 

Source
Expand description

Software state banks, runtime knobs, and diagnostic triggers for in-situ driver experimentation.

StateBank implements MmioBackend and ResourceBackend over a 32-bit word-addressed virtual bank of 4-byte aligned offsets. A driver can register:

Structs§

StateBank
Word-addressed software state bank exposing observable driver state slots, policy-gated runtime knobs, read probes, and diagnostic triggers.
StateSlotHandle
Lock-free handle to a 32-bit state slot or runtime knob shared between an instrumented driver and a StateBank.

Enums§

StateEntry
Entry bound to a 4-byte aligned offset inside a StateBank.

Type Aliases§

ReadProbeFn
Callback type for on-demand 32-bit state read probes.
TriggerFn
Callback type for write-triggered diagnostic actions.