Home
last modified time | relevance | path

Searched refs:take (Results 1 – 25 of 25) sorted by relevance

/DragonOS/kernel/src/libs/
H A Drwlock.rs426 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 Dspinlock.rs201 self.irq_flag.take(); in drop()
H A Drbtree.rs1730 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 Dapp.rs36 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 Dkthread.rs48 for item in data.iter_mut().take(to_dequeue) { in tty_refresh_thread()
/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs184 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 Dzero_dev.rs123 for itr in buf.iter_mut().take(len) { in read_at()
/DragonOS/kernel/src/init/
H A Dinitial_kthread.rs73 current_pcb.worker_private().take(); in switch_to_user()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dmemmap.rs160 EarlyIoRemap::unmap(inner_guard.mmap.vaddr.take().unwrap()).unwrap(); in efi_memmap_unmap()
/DragonOS/kernel/src/process/
H A Dkthread.rs182 return self.result_pcb.lock().take(); in poll_result()
201 return self.closure.lock().take(); in take_closure()
H A Dmod.rs472 .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 Dhba.rs234 for ctbas_value in ctbas.iter().take(32) { in init()
/DragonOS/kernel/src/time/
H A Dtimer.rs179 let func = timer.timer_func.take(); in run()
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e.rs321 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 Dcore.rs113 let old_root_inode = __ROOT_INODE.take().unwrap(); in migrate_virtual_filesystem()
H A Dfile.rs763 let file = self.fds[fd as usize].take().unwrap(); in drop_fd()
/DragonOS/kernel/src/libs/lib_ui/
H A Dscreen_manager.rs128 let mmio_guard = device_buffer_mmio_guard.take().map(Arc::new); in new_device_buffer()
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs534 pub(crate) fn take(&mut self) -> Rawlink<T> { in take() method
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs126 let vcdev = self.inner.lock().vcdev.take(); in devfs_remove()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs618 for item in buf.iter_mut().take(3) { in read_at()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md135 * `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 Dframebuffer_console.rs142 for (char_offset, char_item) in buf.iter().enumerate().take(cnt as usize) { in bit_put_string()
/DragonOS/
H A DLICENSE11 The licenses for most software are designed to take away your
/DragonOS/kernel/crates/rbpf/src/
H A Dcranelift.rs1226 let module = ManuallyDrop::take(&mut self.module); in drop()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs1179 for (i, c) in buf.iter().enumerate().take(nr) { in process_output_block()