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

Module hotplug

Module hotplug 

Source
Expand description

USB Hotplug Detection

Monitors xHCI port status change bits (PORTSC registers) to detect USB device attach and detach events. Events are queued in a ring buffer and can be consumed by a userland udev daemon.

Structs§

UsbHotplugManager
USB Hotplug Manager
UsbPortStatus
Per-port status tracking

Enums§

UsbDeviceSpeed
USB device connection speed
UsbHotplugEvent
USB hotplug event

Functions§

usb_hotplug_get_event
Get the next pending hotplug event
usb_hotplug_has_events
Check if there are pending hotplug events
usb_hotplug_init
Initialize USB hotplug detection
usb_hotplug_num_ports
Get the number of monitored ports
usb_hotplug_poll
Poll for USB hotplug events
usb_hotplug_port_status
Get port status
usb_hotplug_register_callback
Register a callback for hotplug events

Type Aliases§

HotplugCallback
Hotplug callback function type