Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/net/
Dnet_core.rs52 let mut sockets = smoltcp::iface::SocketSet::new(vec![]); in dhcp_query() localVariable
53 let dhcp_handle = sockets.add(dhcp_socket); in dhcp_query()
58 let _flag = net_face.poll(&mut sockets); in dhcp_query()
59 let event = sockets.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
122 let mut sockets = SOCKET_SET.lock(); in poll_ifaces() localVariable
124 iface.poll(&mut sockets).ok(); in poll_ifaces()
143 let sockets = SOCKET_SET.try_lock(); in poll_ifaces_try_lock() localVariable
145 if sockets.is_err() { in poll_ifaces_try_lock()
150 let mut sockets = sockets.unwrap(); in poll_ifaces_try_lock() localVariable
152 iface.poll(&mut sockets).ok(); in poll_ifaces_try_lock()
Dsocket.rs431 let mut sockets = SOCKET_SET.lock(); in bind() localVariable
432 let socket = sockets.get_mut::<udp::Socket>(self.handle.0); in bind()
438 let sockets = SOCKET_SET.lock(); in poll() localVariable
439 let socket = sockets.get::<udp::Socket>(self.handle.0); in poll()
472 let sockets = SOCKET_SET.lock(); in endpoint() localVariable
473 let socket = sockets.get::<udp::Socket>(self.handle.0); in endpoint()
667 let mut sockets = SOCKET_SET.lock(); in connect() localVariable
668 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in connect()
683 drop(sockets); in connect()
686 let mut sockets = SOCKET_SET.lock(); in connect() localVariable
[all …]
/DragonOS-0.1.7/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()