/DragonOS/kernel/src/init/ |
H A D | cmdline.rs | 118 KernelCmdlineParameter::Arg(v) => v.name, in name() 119 KernelCmdlineParameter::KV(v) => v.name, in name() 120 KernelCmdlineParameter::EarlyKV(v) => v.name, in name() 127 KernelCmdlineParameter::Arg(v) => Some(v.value()), in value_bool() 136 KernelCmdlineParameter::KV(v) => v in value_str() 139 .and_then(|v| str::from_utf8(v.as_bytes()).ok()), in value_str() 140 KernelCmdlineParameter::EarlyKV(v) => v.value_str(), in value_str() 264 Some(v) => v, in early_init() 290 if let KernelCmdlineParameter::EarlyKV(v) = x { in early_init() 291 if !v.initialized { in early_init() [all …]
|
/DragonOS/kernel/src/bpf/map/ |
H A D | queue.rs | 127 Ok(self.peek().map(|v| v.as_slice())) in lookup_elem() 136 if let Some(v) = self.pop() { in lookup_and_delete_elem() 137 value.copy_from_slice(&v); in lookup_and_delete_elem() 151 .map(|v| value.copy_from_slice(v)) in peek_elem()
|
H A D | lru.rs | 41 let value = self.data.get(key).map(|v| v.as_slice()); in lookup_elem() 68 let v = self in lookup_and_delete_elem() localVariable 71 .map(|v| v.as_slice()) in lookup_and_delete_elem() 73 value.copy_from_slice(v); in lookup_and_delete_elem()
|
H A D | hash_map.rs | 42 let value = self.data.get(key).map(|v| v.as_slice()); in lookup_elem() 70 let v = self in lookup_and_delete_elem() localVariable 73 .map(|v| v.as_slice()) in lookup_and_delete_elem() 75 value.copy_from_slice(v); in lookup_and_delete_elem()
|
/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 93 fn new(k: K, v: V) -> NodePtr<K, V> { in new() 100 value: v, in new() 427 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq() 454 for (k, v) in iter { in extend() 455 self.insert(k, v); in extend() 540 self.inner.next().map(|(_, v)| v) in next() 588 self.inner.next().map(|(_, v)| v) in next() 625 let (k, v) = unsafe { in next() 633 Some((k, v)) in next() 654 let (k, v) = obj.pair(); in next_back() [all …]
|
H A D | elf.rs | 806 start_code = start_code.map(|v| v + load_bias); in load() 807 end_code = end_code.map(|v| v + load_bias); in load() 808 start_data = start_data.map(|v| v + load_bias); in load() 809 end_data = end_data.map(|v| v + load_bias); in load()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 434 let mut v: Vec<u8> = vec![0; self.bpb.bytes_per_sector as usize]; in get_fat_entry() localVariable 435 self.gendisk.read_at(&mut v, fat_ent_lba as usize)?; in get_fat_entry() 437 let mut cursor = VecCursor::new(v); in get_fat_entry() 525 let mut v: Vec<u8> = vec![0; self.bpb.bytes_per_sector as usize]; in get_fat_entry_raw() localVariable 526 self.gendisk.read_at(&mut v, fat_ent_lba)?; in get_fat_entry_raw() 528 let mut cursor = VecCursor::new(v); in get_fat_entry_raw() 980 let mut v: Vec<u8> = vec![0; num_lba * LBA_SIZE]; in get_free_cluster() localVariable 981 self.gendisk.read_at(&mut v, lba)?; in get_free_cluster() 983 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster() 1025 let mut v: Vec<u8> = vec![0; self.lba_per_sector() * LBA_SIZE]; in get_free_cluster() localVariable [all …]
|
H A D | bpb.rs | 223 let mut v = vec![0; LBA_SIZE]; in new() localVariable 225 gendisk.read_at(&mut v, 0)?; in new() 227 let mut cursor = VecCursor::new(v); in new()
|
H A D | entry.rs | 1138 let mut v: Vec<u8> = vec![0; fs.lba_per_sector() * LBA_SIZE]; in flush() localVariable 1139 fs.gendisk.read_at(&mut v, lba)?; in flush() 1141 let mut cursor: VecCursor = VecCursor::new(v); in flush() 1351 let mut v: Vec<u8> = vec![0; fs.lba_per_sector() * LBA_SIZE]; in flush() localVariable 1352 fs.gendisk.read_at(&mut v, lba)?; in flush() 1354 let mut cursor: VecCursor = VecCursor::new(v); in flush() 2400 let mut v: Vec<u8> = vec![0; LBA_SIZE]; in get_raw_dir_entry() localVariable 2402 fs.gendisk.read_at(&mut v, lba)?; in get_raw_dir_entry() 2404 let mut cursor: VecCursor = VecCursor::new(v); in get_raw_dir_entry()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/syscall_ebpf-ebpf/src/ |
H A D | main.rs | 25 if let Some(v) = SYSCALL_LIST.get(&(syscall_num as u32)){ in try_syscall_ebpf() 26 let new_v = *v + 1; in try_syscall_ebpf()
|
/DragonOS/kernel/src/process/ |
H A D | idle.rs | 34 let mut v: Vec<Arc<ProcessControlBlock>> = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in init_idle() localVariable 77 v.push(idle_pcb); in init_idle() 81 __IDLE_PCB = Some(v); in init_idle()
|
H A D | exec.rs | 250 for (&k, &v) in self.auxv.iter() { in push_at() 251 self.push_slice(ustack, &[k as usize, v])?; in push_at()
|
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 61 let v = ApStartStackInfo { vaddr }; in smp_ap_start() localVariable 62 smp_init_switch_stack(&v); in smp_ap_start() 183 let mut v = vec![]; in print_cpus() localVariable 185 v.push(cpu.data()); in print_cpus()
|
/DragonOS/user/port/binutils/2.38/ |
H A D | README.md | 24 docker run --rm -it -v $PWD:/workdir -w /workdir dragonos-binutils-build
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | gendisk.rs | 175 for (_, v) in self.iter() { in intersects() 176 if range.intersects_with(&v.range).is_some() { in intersects()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | memmap.rs | 49 return self.vaddr.map(|v| v + self.size); in map_end_vaddr()
|
/DragonOS/.github/workflows/ |
H A D | docs-multiversion.yml | 6 tags: [ "v*", "V*"]
|
/DragonOS/user/ |
H A D | Makefile | 36 …cargo install --git https://git.mirrors.dragonos.org.cn/DragonOS-Community/DADK.git --tag v$(MIN_D…
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 564 let mut v: Vec<(PhysAddr, PageFrameCount)> = Vec::with_capacity(60 * 1024); in test_buddy() localVariable 595 v.push((paddr, allocated_frame_count)); in test_buddy() 611 if !v.is_empty() { in test_buddy() 618 random_index %= v.len() as u64; in test_buddy() 620 let (paddr, allocated_frame_count) = v.remove(random_index); in test_buddy() 636 for (paddr, allocated_frame_count) in v { in test_buddy()
|
/DragonOS/kernel/src/mm/ |
H A D | ucontext.rs | 873 for v in self.vmas.iter() { in contains() 874 let guard = v.lock_irqsave(); in contains() 876 return Some(v.clone()); in contains() 893 for v in self.vmas.iter() { in find_nearest() 894 let guard = v.lock_irqsave(); in find_nearest() 896 return Some(v.clone()); in find_nearest() 905 nearest = Some(v.clone()); in find_nearest() 916 .filter(move |v| v.lock_irqsave().region.intersect(&request).is_some()) in conflicts()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdesc.rs | 721 self.per_cpu_dev_id.as_ref().map(|v| v.get()) in per_cpu_dev_id() 726 self.per_cpu_dev_id.as_mut().map(|v| v.get_mut()) in per_cpu_dev_id_mut()
|
/DragonOS/kernel/src/bpf/helper/ |
H A D | mod.rs | 192 Ok(v) => v as i64, in raw_map_for_each_elem()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | file.rs | 154 let v: Lazy<Weak<dyn IndexNode>> = Lazy::new(); in new() localVariable 156 v.init(inode); in new() 158 v in new()
|
/DragonOS/docs/_static/ |
H A D | dragonos-logo.svg | 1 …14q-7.64-.58-18.75-.59h-25.79v11.13q0,16.41.59,22.27h-12.3q.57-6.45.58-17.58v-85h-5.86a282.9,282.9…
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 265 .find(|(_, v)| v.metadata().unwrap().inode_id == ino) in get_entry_name()
|