Searched refs:NetDriver (Results 1 – 5 of 5) sorted by relevance
13 pub trait NetDriver: Driver { interface
20 use super::NetDriver;245 impl<T: Transport> NetDriver for VirtioInterface<T> {
5 driver::net::NetDriver,120 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDriver>>> = NET_DRIVERS.read(); in poll_ifaces()140 let guard: RwLockReadGuard<BTreeMap<usize, Arc<dyn NetDriver>>> = NET_DRIVERS.read(); in poll_ifaces_try_lock()
8 use crate::{driver::net::NetDriver, kwarn, libs::rwlock::RwLock, syscall::SystemError};20 …pub static ref NET_DRIVERS: RwLock<BTreeMap<usize, Arc<dyn NetDriver>>> = RwLock::new(BTreeMap::ne…
12 driver::net::NetDriver,816 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect()