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

with_device

Function with_device 

Source
pub fn with_device<R, F: FnOnce(&dyn NetworkDevice) -> R>(
    name: &str,
    f: F,
) -> Option<R>
Expand description

Execute a closure with a device by name (immutable access)