Home
last modified time | relevance | path

Searched refs:handle_guard (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/net/
H A Dnet_core.rs207 let handle_guard = HANDLE_MAP.read_irqsave(); in send_event() localVariable
209 let item: Option<&super::socket::SocketHandleItem> = handle_guard.get(&global_handle); in send_event()
250 drop(handle_guard); in send_event()
/DragonOS/kernel/src/net/socket/
H A Dinet.rs821 let mut handle_guard = HANDLE_MAP.write_irqsave(); in listen() localVariable
822 let socket_handle_item_0 = handle_guard.get_mut(&self.socket_handle()).unwrap(); in listen()
830 handle_guard.insert(handle, handle_item); in listen()
932 let mut handle_guard = HANDLE_MAP.write_irqsave(); in accept() localVariable
934 let item = handle_guard.remove(&old_handle).unwrap(); in accept()
940 handle_guard.insert(old_handle, new_item); in accept()
942 handle_guard.insert(new_handle, item); in accept()
952 drop(handle_guard); in accept()