Home
last modified time | relevance | path

Searched refs:get_mut (Results 1 – 22 of 22) sorted by relevance

/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs103 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in read()
136 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
151 socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
313 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.0); in read()
350 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.0); in write()
394 let socket = sockets.get_mut::<udp::Socket>(self.handle.0); in bind()
574 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in read()
608 .get_mut(&self.socket_handle()) in read()
639 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in write()
664 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in poll()
[all …]
Dmod.rs240 .get_mut(&self.socket_handle()) in add_epoll()
249 .get_mut(&self.socket_handle()) in remove_epoll()
258 let handle_item = handle_map_guard.get_mut(&self.socket_handle()).unwrap(); in clear_epoll()
/DragonOS-0.1.9/kernel/src/libs/futex/
Dfutex.rs232 let bucket = futex_map_guard.get_mut(&key); in futex_wait()
240 futex_map_guard.get_mut(&key).unwrap() in futex_wait()
296 let bucket = futex_map_guard.get_mut(&key); in futex_wait()
364 let bucket_mut = binding.get_mut(&key).ok_or(SystemError::EINVAL)?; in futex_wake()
429 let bucket_1_mut = futex_data_guard.get_mut(&key1).ok_or(SystemError::EINVAL)?; in futex_requeue()
433 let bucket_1_mut = futex_data_guard.get_mut(&key1).ok_or(SystemError::EINVAL)?; in futex_requeue()
438 futex_data_guard.get_mut(&key2).ok_or(SystemError::EINVAL)?; in futex_requeue()
475 let bucket1 = futex_data_guard.get_mut(&key1).ok_or(SystemError::EINVAL)?; in futex_wake_op()
485 let bucket2 = futex_data_guard.get_mut(&key2).ok_or(SystemError::EINVAL)?; in futex_wake_op()
/DragonOS-0.1.9/kernel/src/libs/
Dlazy_init.rs104 pub fn get_mut(&mut self) -> &mut T { in get_mut() method
132 return self.get_mut(); in deref_mut()
Dlock_free_flags.rs22 pub fn get_mut(&self) -> &mut T { in get_mut() method
Dvec_cursor.rs36 pub fn get_mut(&mut self) -> &mut Vec<u8> { in get_mut() method
Drwlock.rs372 pub unsafe fn get_mut(&mut self) -> &mut T { in get_mut() method
Drbtree.rs1175 pub fn get_mut(&mut self, k: &K) -> Option<&mut V> { in get_mut() method
1559 match m.get_mut(&5) { in test_find_mut()
/DragonOS-0.1.9/tools/debugging/logmonitor/src/backend/monitor/
Dlogset.rs72 pub fn get_mut(&mut self, key: &K) -> Option<&mut V> { in get_mut() method
73 self.inner.get_mut(key) in get_mut()
/DragonOS-0.1.9/kernel/src/driver/base/map/
Dmod.rs69 .get_mut((dev_t.major().data() % 255) as usize) in kobj_map()
90 .get_mut((dev_t.major().data() % 255) as usize) in kobj_unmap()
/DragonOS-0.1.9/kernel/src/driver/base/char/
Dmod.rs148 if let Some(items) = CHARDEVS.lock().get_mut(Self::major_to_index(major)) { in __register_chardev_region()
185 .get_mut(Self::major_to_index(device_number.major())) in __unregister_chardev_region()
/DragonOS-0.1.9/kernel/src/mm/
Dpercpu.rs83 pub fn get_mut(&mut self) -> &mut T { in get_mut() method
/DragonOS-0.1.9/kernel/src/net/
Dnet_core.rs66 let event = binding.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
232 let handle_item = handle_guard.get_mut(&handle).unwrap(); in send_event()
/DragonOS-0.1.9/kernel/src/driver/base/block/
Dblock_device.rs435 if let Some(items) = BLOCKDEVS.lock().get_mut(Self::major_to_index(major)) { in __register_blockdev_region()
472 .get_mut(Self::major_to_index(device_number.major())) in __unregister_blockdev_region()
/DragonOS-0.1.9/kernel/src/process/
Dkthread.rs273 .get_mut() in init_stage1()
287 .get_mut() in init_stage1()
Dmod.rs401 .get_mut() in switch_finish_hook()
408 .get_mut() in switch_finish_hook()
715 return self.flags.get_mut(); in flags()
Dfork.rs206 *new_pcb.flags.get_mut() = ProcessManager::current_pcb().flags().clone(); in copy_flags()
/DragonOS-0.1.9/kernel/src/libs/lib_ui/
Dtextui.rs676 if let Some(v_char) = vline.chars.get_mut(i as usize) { in textui_new_line()
722 if let Some(v_char) = vline.chars.get_mut(index) { in true_textui_putchar_window()
814 vline.chars.get_mut(<LineIndex as Into<usize>>::into(tmp)) in textui_putchar_window()
831 if let Some(v_char) = vline.chars.get_mut(i as usize) { in textui_putchar_window()
/DragonOS-0.1.9/kernel/src/arch/x86_64/process/
Dmod.rs424 SWITCH_RESULT.as_mut().unwrap().get_mut().prev_pcb = Some(prev); in switch_process()
425 SWITCH_RESULT.as_mut().unwrap().get_mut().next_pcb = Some(next); in switch_process()
/DragonOS-0.1.9/kernel/crates/bitmap/src/
Dbitmap_core.rs40 let element = data.get_mut(element_index)?; in set()
/DragonOS-0.1.9/kernel/src/exception/
Dirqdesc.rs701 self.per_cpu_dev_id.as_mut().map(|v| v.get_mut()) in per_cpu_dev_id_mut()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/
Dframebuffer_console.rs380 let col = palette.get_mut(idx as usize).unwrap(); in con_set_palette()