Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs55 let mut sockets = smoltcp::iface::SocketSet::new(vec![]); in dhcp_query() localVariable
56 let dhcp_handle = sockets.add(dhcp_socket); in dhcp_query()
61 let _flag = net_face.poll(&mut sockets); in dhcp_query()
62 let event = sockets.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
125 let mut sockets = SOCKET_SET.lock(); in poll_ifaces() localVariable
127 iface.poll(&mut sockets).ok(); in poll_ifaces()
146 let sockets = SOCKET_SET.try_lock(); in poll_ifaces_try_lock() localVariable
148 if sockets.is_err() { in poll_ifaces_try_lock()
153 let mut sockets = sockets.unwrap(); in poll_ifaces_try_lock() localVariable
155 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock()
Dsocket.rs565 let mut sockets = SOCKET_SET.lock(); in bind() localVariable
566 let socket = sockets.get_mut::<udp::Socket>(self.handle.0); in bind()
572 let sockets = SOCKET_SET.lock(); in poll() localVariable
573 let socket = sockets.get::<udp::Socket>(self.handle.0); in poll()
606 let sockets = SOCKET_SET.lock(); in endpoint() localVariable
607 let socket = sockets.get::<udp::Socket>(self.handle.0); in endpoint()
810 let mut sockets = SOCKET_SET.lock(); in connect() localVariable
811 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in connect()
826 drop(sockets); in connect()
829 let mut sockets = SOCKET_SET.lock(); in connect() localVariable
[all …]
/DragonOS-0.1.8/kernel/src/driver/net/
Dmod.rs22 fn poll(&self, sockets: &mut iface::SocketSet) -> Result<(), SystemError>; in poll()
Dvirtio_net.rs280 sockets: &mut smoltcp::iface::SocketSet, in poll()
284 let poll_res = guard.poll(timestamp, self.driver.force_get_mut(), sockets); in poll()