/DragonOS/kernel/crates/bitmap/src/ |
H A D | bitmap_core.rs | 62 for (i, element) in data.iter().enumerate() { in first_index() 74 for (i, element) in data.iter().enumerate() { in first_false_index() 85 for (i, element) in data.iter().enumerate().rev() { in last_index() 101 let mut iter = data.iter().rev(); in last_false_index() localVariable 102 let mut last_element = *iter.next()?; in last_false_index() 116 for element in iter { in last_false_index() 139 for (i, element) in data.iter().enumerate().skip(element_index + 1) { in next_index() 162 for (i, element) in data.iter().enumerate().skip(element_index + 1) { in next_false_index() 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() [all …]
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | bump.rs | 51 let iter = mem_block_manager().to_iter_available(); in remain_areas() localVariable 59 for area in iter { in remain_areas() 107 let iter = PhysPageFrameIter::new( in ensure_early_mapping() localVariable 114 for p in iter { in ensure_early_mapping() 135 let iter = mem_block_manager().to_iter_available(); in allocate() localVariable 138 for area in iter { in allocate() 182 let iter = mem_block_manager().to_iter_available(); in usage() localVariable 183 for area in iter { in usage()
|
/DragonOS/kernel/src/namespaces/ |
H A D | ucount.rs | 106 while let Some(iter) = uc_iter { in inc_ucounts() 107 let num = iter.ucount[uc_type].fetch_add(1, core::sync::atomic::Ordering::SeqCst); in inc_ucounts() 108 ucounts_add.push(iter.clone()); in inc_ucounts() 110 if num > iter.ns.ucount_max[uc_type] { in inc_ucounts() 116 uc_iter = iter.ns.ucounts.clone(); in inc_ucounts() 139 while let Some(iter) = uc_iter { in dec_ucount() 140 let num = iter.ucount[uc_type].fetch_sub(1, core::sync::atomic::Ordering::SeqCst); in dec_ucount() 144 uc_iter = iter.ns.ucounts.clone(); in dec_ucount()
|
/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 288 KCMDLINE_PARAM_EARLY_KV.iter().for_each(|x| { in early_init() 386 KCMDLINE_PARAM_ARG.iter().for_each(|x| { in default_initialize() 397 KCMDLINE_PARAM_KV.iter().for_each(|x| { in default_initialize() 421 list.iter().find(|x| { in find_param() 435 let mut iter = arg.splitn(2, '='); in split_arg() localVariable 436 let key = iter.next().unwrap(); in split_arg() 437 let value = iter.next(); in split_arg() 439 if value.is_some() && iter.next().is_some() { in split_arg() 444 let mut iter = key.splitn(2, '.'); in split_arg() localVariable 445 let v1 = iter.next().map(|v| v.trim()); in split_arg() [all …]
|
H A D | boot.rs | 59 .iter() in boot_cmdline_len() 79 for (i, x) in self.boot_command_line.iter().enumerate() { in boot_cmdline_append()
|
/DragonOS/build-scripts/kernel_build/src/kconfig/ |
H A D | mod.rs | 19 for m in modules.iter() { in build() 39 for f in features.iter() { in make_compile_cfg() 71 for m in m_include.iter() { in dfs() 98 for d_config in d_configs.iter() { in parse_d_configs() 114 for f in features.as_array().unwrap().iter() { in parse_d_config() 136 for module in include.as_array().unwrap().iter() { in include()
|
/DragonOS/user/apps/test_ebpf/src/ |
H A D | main.rs | 43 let iter = blocklist.iter(); in main() localVariable 44 for item in iter { in main()
|
/DragonOS/build-scripts/kernel_build/src/cfiles/ |
H A D | common.rs | 7 DIRS.iter().for_each(|dir| { in setup_common_files() 18 DIRS.iter().for_each(|dir| { in setup_common_include_dir()
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | mod.rs | 26 if vm_list.iter().any(|x| x.id == id) { in push_vm() 37 match vm_list.iter().position(|x| x.id == id) { in remove_vm() 53 vm_list.iter().find(|&x| x.id == id).cloned() in vm()
|
/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 17 use core::iter::{FromIterator, IntoIterator}; 374 f.debug_map().entries(self.iter()).finish() in fmt() 426 self.iter() in eq() 443 fn from_iter<T: IntoIterator<Item = (K, V)>>(iter: T) -> RBTree<K, V> { in from_iter() 445 tree.extend(iter); in from_iter() 452 fn extend<T: IntoIterator<Item = (K, V)>>(&mut self, iter: T) { in extend() 453 let iter = iter.into_iter(); in extend() localVariable 454 for (k, v) in iter { in extend() 814 let iter = if self.root.is_null() { in into_iter() localVariable 828 iter in into_iter() [all …]
|
/DragonOS/kernel/src/bpf/map/ |
H A D | lru.rs | 57 for (key, value) in self.data.iter() { in for_each_elem() 78 let mut iter = self.data.iter(); in get_next_key() localVariable 80 for (k, _) in iter.by_ref() { in get_next_key() 86 let res = iter.next(); in get_next_key()
|
H A D | hash_map.rs | 59 for (key, value) in self.data.iter() { in for_each_elem() 80 let mut iter = self.data.iter(); in get_next_key() localVariable 82 for (k, _) in iter.by_ref() { in get_next_key() 88 let res = iter.next(); in get_next_key()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/ |
H A D | run.rs | 38 let mut run_args: Vec<_> = opts.run_args.iter().map(String::as_str).collect(); in run() 47 .args(args.iter().skip(1)) in run()
|
/DragonOS/kernel/src/driver/base/ |
H A D | subsys.rs | 169 if drivers.iter().any(|d| Arc::ptr_eq(d, driver)) { in add_driver_to_vec() 178 let index = drivers.iter().position(|d| Arc::ptr_eq(d, driver)); in remove_driver_from_vec() 186 if devices.iter().any(|d| Arc::ptr_eq(d, device)) { in add_device_to_vec() 196 let index = devices.iter().position(|d| Arc::ptr_eq(d, device)); in remove_device_from_vec()
|
/DragonOS/kernel/src/process/ |
H A D | exec.rs | 173 for bl in BINARY_LOADERS.iter() { in load_binary_file() 232 .iter() in push_at() 241 .iter() in push_at() 250 for (&k, &v) in self.auxv.iter() { in push_at()
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 145 for (_, iface) in guard.iter() { in poll_ifaces() 174 for (_, iface) in guard.iter() { in poll_ifaces_try_lock() 197 for (_, iface) in guard.iter() { in poll_ifaces_try_lock_onetime() 206 for (handle, socket_type) in sockets.iter() { in send_event()
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 421 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in write_at_bytes() localVariable 422 let multi = iter.multiblock; in write_at_bytes() 424 for range in iter { in write_at_bytes() 459 let iter = BlockIter::new_multiblock(offset, offset + len, self.blk_size_log2()); in read_at_bytes() localVariable 460 let multi = iter.multiblock; in read_at_bytes() 463 for range in iter { in read_at_bytes() 606 for (index, item) in items.iter().enumerate() { in __register_blockdev_region() 643 for (index, item) in items.iter().enumerate() { in __unregister_blockdev_region()
|
/DragonOS/kernel/src/time/ |
H A D | clocksource.rs | 411 for (pos, ele) in list_guard.iter().enumerate() { in clocksource_enqueue() 530 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue_watchdog() 554 for ele in list.iter() { in clocksource_dequeue_watchdog() 563 for (pos, ele) in clocksource_list.iter().enumerate() { in clocksource_dequeue_watchdog() 617 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue() 766 for ele in list.iter() { in clocksource_resume() 782 for ele in list.iter() { in clocksource_suspend() 811 for cs in watchdog_list.iter() { in clocksource_watchdog() 922 for (pos, ele) in wd_list.iter().enumerate() { in __clocksource_watchdog_kthread() 941 for clock in del_clocks.iter() { in __clocksource_watchdog_kthread() [all …]
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | loader.rs | 26 for sym in elf.syms.iter() { in load() 85 self.symbols.iter().find(|sym| sym.name() == name) in find_by_name()
|
/DragonOS/kernel/crates/intertrait/src/ |
H A D | hasher.rs | 25 .iter() in write()
|
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/ |
H A D | logset.rs | 84 pub fn iter(&self) -> impl Iterator<Item = (&K, &V)> { in iter() method 85 self.inner.iter() in iter()
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | kmsg.rs | 84 for msg in self.buffer.iter() { in read_level() 144 for msg in self.buffer.iter() { in tobytes()
|
/DragonOS/kernel/src/arch/x86_64/ |
H A D | acpi.rs | 18 for ap in processor_info.application_processors.iter() { in early_acpi_boot_init()
|
/DragonOS/kernel/crates/unified-init/src/ |
H A D | lib.rs | 67 for initializer in $initializer_slice.iter() {
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | init.rs | 108 for md in efi_guard.mmap.iter() { in efi_find_mirror() 229 for md in mmap.iter() { in efi_vaddr_2_paddr() 258 for md in inner_guard.mmap.iter() { in reserve_memory_regions()
|