Skip to main content

Crate smoo_gadget_core

Crate smoo_gadget_core 

Source

Structs§

ConfigExport
Parameters describing a single export entry in v0 CONFIG_EXPORTS payloads.
ConfigExportsV0
Encoded CONFIG_EXPORTS payload for protocol version 0.
ExportController
ExportFlags
ExportReconcileContext
ExportSpec
FunctionfsEndpoints
File descriptor bundle for a FunctionFS interface (data-plane endpoints only).
GadgetConfig
Gadget configuration parameters that stay constant while the device is active.
GadgetControl
Control-plane helper that parses vendor SETUP packets and emits high-level commands.
GadgetDataPlane
Data-plane controller that owns the FunctionFS interrupt and bulk endpoints.
GadgetRuntime
GadgetStatusReport
Snapshot of dynamic gadget status advertised via SMOO_STATUS.
IoPumpHandle
Single-owner handle to the background I/O pump.
IoWork
Work item executed by the I/O pump.
LinkController
Drives link state transitions based on ep0 lifecycle events, heartbeat pings, endpoint I/O errors, and periodic liveness ticks.
PersistedExportRecord
RuntimeTunables
SetupPacket
Decoded USB control request observed on ep0.
SmooGadget
High-level FunctionFS gadget driver.
SmooUblk
Top level interface to ublk. Creates SmooUblkDevices
SmooUblkDevice
StateStore
In-memory view of the persisted gadget state.
UblkIoRequest
UblkQueueRuntime

Enums§

DeviceHandle
DmaHeap
ExportState
LinkCommand
Commands emitted by the link controller for the runtime to act upon.
LinkOfflineReason
Most recent reason the link transitioned Offline.
LinkState
Current USB link state as observed from FunctionFS lifecycle events and liveness pings.
SetupCommand
Commands emitted by GadgetControl for the runtime to apply.
UblkOp

Traits§

ControlIo

Type Aliases§

UblkBuffer