Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/net/
Dmod.rs3 iface,
22 fn poll(&self, sockets: &mut iface::SocketSet) -> Result<(), SystemError>; in poll()
27 fn inner_iface(&self) -> &SpinLock<smoltcp::iface::Interface>; in inner_iface()
Dvirtio_net.rs69 iface: SpinLock<smoltcp::iface::Interface>, field
87 let mut iface_config = smoltcp::iface::Config::new(); in new()
96 let iface = smoltcp::iface::Interface::new(iface_config, &mut driver); in new() localVariable
102 iface: SpinLock::new(iface), in new()
112 let mut iface_config = smoltcp::iface::Config::new(); in new()
229 let iface = VirtioInterface::new(driver); in virtio_net() localVariable
231 NET_DRIVERS.write().insert(iface.nic_id(), iface.clone()); in virtio_net()
234 iface.name(), in virtio_net()
266 self.iface.lock().update_ip_addrs(|addrs| { in update_ip_addrs()
280 sockets: &mut smoltcp::iface::SocketSet, in poll()
[all …]
/DragonOS-0.1.7/kernel/src/net/
Dnet_core.rs52 let mut sockets = smoltcp::iface::SocketSet::new(vec![]); in dhcp_query()
123 for (_, iface) in guard.iter() { in poll_ifaces()
124 iface.poll(&mut sockets).ok(); in poll_ifaces()
151 for (_, iface) in guard.iter() { in poll_ifaces_try_lock()
152 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock()
Dsocket.rs4 iface::{SocketHandle, SocketSet},
214 let iface = NET_DRIVERS.read().get(&0).unwrap().clone(); in write() localVariable
218 iface.inner_iface().lock().ipv4_addr(); in write()
254 iface.poll(&mut socket_set_guard).ok(); in write()
673 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect() localVariable
674 let mut inner_iface = iface.inner_iface().lock(); in connect()
681 drop(iface); in connect()
/DragonOS-0.1.7/docs/community/ChangeLog/V0.1.x/
DV0.1.7.md279 * 能够正常通过dhcp获取ipv4地址(具有全局iface btree)