/DragonOS/kernel/src/libs/ |
H A D | rwlock.rs | 426 let irq_guard = self.irq_guard.take(); in try_upgrade() 462 let irq_guard = self.irq_guard.take(); in downgrade() 517 let irq_guard = self.irq_guard.take(); in downgrade() 540 let irq_guard = self.irq_guard.take(); in downgrade_to_upgradeable() 607 self.irq_guard.take(); in drop()
|
H A D | spinlock.rs | 201 self.irq_flag.take(); in drop()
|
H A D | rbtree.rs | 1730 for _ in iter.by_ref().take(3) {} in test_size_hint() 1744 for _ in iter.by_ref().take(3) {} in test_iter_len() 1758 for _ in iter.by_ref().take(3) {} in test_mut_size_hint() 1772 for _ in iter.by_ref().take(3) {} in test_iter_mut_len()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | app.rs | 36 let sparkline_points = rand_signal.by_ref().take(300).collect(); in new() 145 .extend(self.source.by_ref().take(self.tick_rate)); in on_tick()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | kthread.rs | 48 for item in data.iter_mut().take(to_dequeue) { in tty_refresh_thread()
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | bitmap_core.rs | 184 for (i, element) in data.iter().enumerate().take(element_index).rev() { in prev_index() 202 for (i, element) in data.iter().enumerate().take(element_index).rev() { in prev_false_index()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | zero_dev.rs | 123 for itr in buf.iter_mut().take(len) { in read_at()
|
/DragonOS/kernel/src/init/ |
H A D | initial_kthread.rs | 73 current_pcb.worker_private().take(); in switch_to_user()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | memmap.rs | 160 EarlyIoRemap::unmap(inner_guard.mmap.vaddr.take().unwrap()).unwrap(); in efi_memmap_unmap()
|
/DragonOS/kernel/src/process/ |
H A D | kthread.rs | 182 return self.result_pcb.lock().take(); in poll_result() 201 return self.closure.lock().take(); in take_closure()
|
H A D | mod.rs | 472 .take() in switch_finish_hook() 479 .take() in switch_finish_hook() 1509 let bx = self.stack.take(); in drop()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | hba.rs | 234 for ctbas_value in ctbas.iter().take(32) { in init()
|
/DragonOS/kernel/src/time/ |
H A D | timer.rs | 179 let func = timer.timer_func.take(); in run()
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e.rs | 321 for ring in recv_desc_ring.iter_mut().take(recv_ring_length) { in new() 328 for ring in trans_desc_ring.iter_mut().take(recv_ring_length) { in new()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | core.rs | 113 let old_root_inode = __ROOT_INODE.take().unwrap(); in migrate_virtual_filesystem()
|
H A D | file.rs | 763 let file = self.fds[fd as usize].take().unwrap(); in drop_fd()
|
/DragonOS/kernel/src/libs/lib_ui/ |
H A D | screen_manager.rs | 128 let mmio_guard = device_buffer_mmio_guard.take().map(Arc::new); in new_device_buffer()
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | pages.rs | 534 pub(crate) fn take(&mut self) -> Rawlink<T> { in take() method
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | mod.rs | 126 let vcdev = self.inner.lock().vcdev.take(); in devfs_remove()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 618 for item in buf.iter_mut().take(3) { in read_at()
|
/DragonOS/kernel/crates/rbpf/ |
H A D | README.md | 135 * `struct EbpfVmNoData` does not take any data. The eBPF program takes no 540 programs this way, it works just as well. If we take again the same sample as 588 feedback (or PRs) are welcome, including about ways you might see to take
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 142 for (char_offset, char_item) in buf.iter().enumerate().take(cnt as usize) { in bit_put_string()
|
/DragonOS/ |
H A D | LICENSE | 11 The licenses for most software are designed to take away your
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | cranelift.rs | 1226 let module = ManuallyDrop::take(&mut self.module); in drop()
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 1179 for (i, c) in buf.iter().enumerate().take(nr) { in process_output_block()
|