Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 19 of 19) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs17 use core::iter::{FromIterator, IntoIterator};
372 f.debug_map().entries(self.iter()).finish() in fmt()
423 self.iter() in eq()
448 fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> RBTree<K, V> { in from_iter()
450 tree.extend(iter); in from_iter()
457 fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) { in extend()
458 let iter = iter.into_iter(); in extend() localVariable
459 for (k, v) in iter { in extend()
823 let iter = if self.root.is_null() { in into_iter() localVariable
837 iter in into_iter()
[all …]
Dnotifier.rs36 for b in self.0.iter() { in register()
87 for b in self.0.iter() { in call_chain()
Dmutex.rs137 for p in inner.wait_list.iter() { in check_pid_in_wait_list()
Delf.rs504 .iter() in load()
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs114 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in read_at() localVariable
115 let multi = iter.multiblock; in read_at()
118 for range in iter { in read_at()
151 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in write_at() localVariable
152 let multi = iter.multiblock; in write_at()
154 for range in iter { in write_at()
/DragonOS-0.1.8/kernel/src/time/
Dclocksource.rs291 for (pos, ele) in list_guard.iter().enumerate() { in clocksource_enqueue()
411 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue_watchdog()
435 for ele in list.iter() { in clocksource_dequeue_watchdog()
444 for (pos, ele) in clocksource_list.iter().enumerate() { in clocksource_dequeue_watchdog()
498 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue()
623 for ele in list.iter() { in clocksource_resume()
639 for ele in list.iter() { in clocksource_suspend()
676 for cs in watchdog_list.iter() { in clocksource_watchdog()
754 for (pos, ele) in wd_list.iter().enumerate() { in clocksource_watchdog_kthread()
772 for clock in del_clocks.iter() { in clocksource_watchdog_kthread()
[all …]
Dtimer.rs102 for (pos, elt) in timer_list.iter().enumerate() { in activate()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbump.rs50 for area in self.areas().iter() { in allocate()
92 for area in self.areas().iter() { in usage()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs173 for bl in BINARY_LOADERS.iter() { in load_binary_file()
230 .iter() in push_at()
240 .iter() in push_at()
249 for (&k, &v) in self.auxv.iter() { in push_at()
Dfork.rs53 .iter() in process_copy_sighand()
/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs126 for (_, iface) in guard.iter() { in poll_ifaces()
154 for (_, iface) in guard.iter() { in poll_ifaces_try_lock()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs215 for (index, item) in items.iter().enumerate() { in __register_chardev_region()
253 for (index, item) in items.iter().enumerate() { in __unregister_chardev_region()
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs162 for vma in self.mappings.vmas.iter() { in try_clone()
598 vm_holes: core::iter::once((VirtAddr::new(0), MMArch::USER_END_VADDR.data())) in new()
608 for v in self.vmas.iter() { in contains()
621 .iter() in conflicts()
635 let mut iter = self in find_free() localVariable
637 .iter() in find_free()
640 let (hole_vaddr, size) = iter.find(|(hole_vaddr, hole_size)| { in find_free()
772 return self.vmas.iter(); in iter_vmas()
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs33 CompatibleTable(BTreeSet::from_iter(id_vec.iter().cloned())) in new()
156 for (_dev_id_table, device) in devices.iter() { in driver_match_device()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs679 for iov in iovs.iter() { in from_user()
699 for slice in self.0.iter() { in gather()
727 let total_len: usize = self.0.iter().map(|slice| slice.len()).sum(); in new_buf()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs1166 .iter() in name_to_string()
1172 .iter() in name_to_string()
1196 let iter = name[..total_len].iter().map(|c| decode_u8_ascii(*c)); in name_to_string() localVariable
1198 return String::from_iter(iter); in name_to_string()
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal_types.rs488 for x in self.q.iter() { in find()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs365 for area in PHYS_MEMORY_AREAS.iter() { in allocator_init()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs135 for box_pci_device_structure in list.iter() { in get_pci_device_structure()
1134 for box_pci_device in list.iter() { in pci_init()