Skip to main content

NIC_DEVICE

Static NIC_DEVICE 

Source
static NIC_DEVICE: Mutex<Option<Arc<dyn NetworkDevice>>>
Expand description

Global reference to the first NIC device, used by nic_handler to call handle_interrupt(). Set via set_nic_device() after PCI probe.

ยงTODO (multi-NIC)

This only supports a single NIC. When multiple NICs are present the handler should iterate all registered devices or use per-IRQ dispatch.