Function net::register_device
source · pub fn register_device<T>(
device: &'static IrqSafeMutex<T>
) -> Arc<NetworkInterface>where
T: 'static + NetworkDevice + Send,Expand description
Registers a network device.
The function will convert the device to an interface and it will then be
accessible using get_interfaces().