Home
last modified time | relevance | path

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

12

/DragonOS/kernel/src/init/
H A Dcmdline.rs118 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 Dqueue.rs127 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 Dlru.rs41 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 Dhash_map.rs42 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 Drbtree.rs93 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 Delf.rs806 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 Dfs.rs434 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 Dbpb.rs223 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 Dentry.rs1138 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 Dmain.rs25 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 Didle.rs34 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 Dexec.rs250 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 Dmod.rs61 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 DREADME.md24 docker run --rm -it -v $PWD:/workdir -w /workdir dragonos-binutils-build
/DragonOS/kernel/src/driver/base/block/
H A Dgendisk.rs175 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 Dmemmap.rs49 return self.vaddr.map(|v| v + self.size); in map_end_vaddr()
/DragonOS/.github/workflows/
H A Ddocs-multiversion.yml6 tags: [ "v*", "V*"]
/DragonOS/user/
H A DMakefile36 …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 Dmod.rs564 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 Ducontext.rs873 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 Dirqdesc.rs721 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 Dmod.rs192 Ok(v) => v as i64, in raw_map_for_each_elem()
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs154 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 Ddragonos-logo.svg1 …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 Dmod.rs265 .find(|(_, v)| v.metadata().unwrap().inode_id == ino) in get_entry_name()

12