Expand description
Network device abstraction layer
Defines the NetworkDevice trait and device registry for hardware
network drivers. All network drivers (E1000, VirtIO-Net, etc.)
implement this trait to provide a uniform interface for the IP stack.
Structs§
- Device
Capabilities - Network device capabilities
- Device
Statistics - Network device statistics
- Ethernet
Device - Ethernet device (placeholder for real hardware)
- Loopback
Device - Loopback device implementation
Enums§
- Device
State - Network device state
Traits§
- Network
Device - Network device trait
Functions§
- init
- Initialize device subsystem
- list_
devices - List all device names
- register_
device - Register a network device
- with_
device - Execute a closure with a device by name (immutable access)
- with_
device_ mut - Execute a closure with a device by name (mutable access)