Searched refs:iface (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/src/driver/net/ |
H A D | loopback.rs | 248 iface: SpinLock<smoltcp::iface::Interface>, field 274 let mut iface_config = smoltcp::iface::Config::new(HardwareAddress::Ethernet( in new() 279 let mut iface = in new() localVariable 280 smoltcp::iface::Interface::new(iface_config, &mut driver, Instant::now().into()); in new() 282 iface.update_ip_addrs(|ip_addrs| { in new() 291 iface: SpinLock::new(iface), in new() 477 self.iface.lock().update_ip_addrs(|addrs| { in update_ip_addrs() 497 fn poll(&self, sockets: &mut smoltcp::iface::SocketSet) -> Result<(), SystemError> { in poll() 499 let mut guard = self.iface.lock(); in poll() 508 fn inner_iface(&self) -> &SpinLock<smoltcp::iface::Interface> { in inner_iface() [all …]
|
H A D | mod.rs | 3 iface, 64 fn poll(&self, sockets: &mut iface::SocketSet) -> Result<(), SystemError>; in poll() 69 fn inner_iface(&self) -> &SpinLock<smoltcp::iface::Interface>; in inner_iface()
|
H A D | virtio_net.rs | 15 use smoltcp::{iface, phy, wire}; 370 iface: SpinLock<iface::Interface>, field 396 let mut iface_config = iface::Config::new(wire::HardwareAddress::Ethernet( in new() 401 let iface = iface::Interface::new(iface_config, &mut device_inner, Instant::now().into()); in new() localVariable 407 iface: SpinLock::new(iface), in new() 508 let mut iface_config = iface::Config::new(wire::HardwareAddress::Ethernet( in new() 647 self.iface.lock().update_ip_addrs(|addrs| { in update_ip_addrs() 661 fn poll(&self, sockets: &mut iface::SocketSet) -> Result<(), SystemError> { in poll() 663 let mut guard = self.iface.lock(); in poll() 674 fn inner_iface(&self) -> &SpinLock<iface::Interface> { in inner_iface() [all …]
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 86 iface: SpinLock<smoltcp::iface::Interface>, field 127 let mut iface_config = smoltcp::iface::Config::new(HardwareAddress::Ethernet( in new() 196 let mut iface_config = smoltcp::iface::Config::new(HardwareAddress::Ethernet( in new() 201 let iface = in new() localVariable 202 smoltcp::iface::Interface::new(iface_config, &mut driver, Instant::now().into()); in new() 208 iface: SpinLock::new(iface), in new() 326 self.iface.lock().update_ip_addrs(|addrs| { in update_ip_addrs() 338 fn poll(&self, sockets: &mut smoltcp::iface::SocketSet) -> Result<(), SystemError> { in poll() 340 let mut guard = self.iface.lock(); in poll() 349 fn inner_iface(&self) -> &SpinLock<smoltcp::iface::Interface> { in inner_iface() [all …]
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 133 for (_, iface) in guard.iter() { in poll_ifaces() 134 iface.poll(&mut sockets).ok(); in poll_ifaces() 162 for (_, iface) in guard.iter() { in poll_ifaces_try_lock() 163 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock() 185 for (_, iface) in guard.iter() { in poll_ifaces_try_lock_onetime() 186 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock_onetime() 193 fn send_event(sockets: &smoltcp::iface::SocketSet) -> Result<(), SystemError> { in send_event()
|
/DragonOS/kernel/src/net/socket/ |
H A D | handle.rs | 2 use smoltcp::iface::SocketHandle;
|
H A D | inet.rs | 161 let iface = NET_DEVICES.read_irqsave().get(&0).unwrap().clone(); in write() localVariable 165 iface.inner_iface().lock().ipv4_addr(); in write() 199 iface.poll(&mut socket_set_guard).ok(); in write() 756 let iface: Arc<dyn NetDevice> = NET_DEVICES.write_irqsave().get(&0).unwrap().clone(); in connect() localVariable 757 let mut inner_iface = iface.inner_iface().lock(); in connect() 764 drop(iface); in connect()
|
H A D | mod.rs | 13 iface::SocketSet,
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 557 let iface = device in add_device() localVariable 565 .push(iface as Arc<dyn Device>); in add_device()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.7.md | 279 * 能够正常通过dhcp获取ipv4地址(具有全局iface btree)
|