/DragonOS/kernel/src/driver/timers/hpet/ ! |
H A D | mod.rs | 22 let p = NonNull::new(self as *const HpetRegisters as *mut HpetRegisters).unwrap(); in timers_num() localVariable 23 let cap = unsafe { volread!(p, capabilties) }; in timers_num() 29 let p = NonNull::new(self as *const HpetRegisters as *mut HpetRegisters).unwrap(); in counter_clock_period() localVariable 30 let period = unsafe { volread!(p, period) }; in counter_clock_period() 40 let p = NonNull::new(self as *const HpetRegisters as *mut HpetRegisters).unwrap(); in main_counter_value() localVariable 41 let main_counter_value = unsafe { volread!(p, main_counter_value) }; in main_counter_value() 46 let p = NonNull::new(self as *const HpetRegisters as *mut HpetRegisters).unwrap(); in write_main_counter_value() localVariable 47 volwrite!(p, main_counter_value, value); in write_main_counter_value() 52 let p = NonNull::new(self as *const HpetRegisters as *mut HpetRegisters).unwrap(); in general_config() localVariable 53 unsafe { volread!(p, general_config) } in general_config() [all …]
|
/DragonOS/kernel/src/filesystem/sysfs/ ! |
H A D | dir.rs | 61 .map(|p| p.upgrade().unwrap().inode()) in create_dir() 90 let mut p = parent.clone(); in kernfs_path() localVariable 94 while !Arc::ptr_eq(&p, sys_root_inode) { in kernfs_path() 95 parts.push(p.name().to_string()); in kernfs_path() 96 if let Some(parent) = p.parent() { in kernfs_path() 97 p = parent; in kernfs_path()
|
/DragonOS/kernel/src/init/ ! |
H A D | cmdline.rs | 163 let p = self as *const Self as *mut Self; in force_mut() localVariable 164 p.as_mut().unwrap() in force_mut() 219 let p = self as *const Self as *mut Self; in force_mut() localVariable 220 p.as_mut().unwrap() in force_mut() 271 KernelCmdlineParameter::EarlyKV(p) => { in early_init() 272 let p = unsafe { p.force_mut() }; in early_init() localVariable 276 p.value[..len].copy_from_slice(&value[..len]); in early_init() 277 p.index = len; in early_init() 279 p.initialized = true; in early_init() 344 KernelCmdlineParameter::KV(p) => { in init() [all …]
|
H A D | boot.rs | 152 let p = BOOT_CALLBACKS in boot_callbacks() localVariable 156 *p in boot_callbacks()
|
/DragonOS/kernel/src/smp/cpu/ ! |
H A D | mod.rs | 117 let p = (self as *const Self as *mut Self).as_mut().unwrap(); in set_possible_cpu() localVariable 119 if let Some(prev) = p.possible_cpus.set(cpu, value) { in set_possible_cpu() 122 p.possible_cnt in set_possible_cpu() 125 p.possible_cnt in set_possible_cpu() 147 let p = (self as *const Self as *mut Self).as_mut().unwrap(); in set_present_cpu() localVariable 149 if let Some(prev) = p.present_cpus.set(cpu, value) { in set_present_cpu() 152 p.present_cnt in set_present_cpu() 155 p.present_cnt in set_present_cpu() 178 let p = self.cpuhp_state.force_get_mut(cpu_id); in set_cpuhp_state() localVariable 179 let old_state = p.state; in set_cpuhp_state() [all …]
|
/DragonOS/kernel/src/arch/riscv64/init/ ! |
H A D | mod.rs | 81 node.properties().for_each(|p| { in print_node() 84 if p.name == "compatible" { in print_node() 85 println!("{}: {:?}", p.name, p.as_str()); in print_node() 87 println!("{}: {:?}", p.name, p.value); in print_node()
|
/DragonOS/kernel/src/libs/ ! |
H A D | casting.rs | 68 let p = Arc::into_raw(x); in downcast_arc() localVariable 69 let new = unsafe { Arc::from_raw(p as *const T) }; in downcast_arc()
|
H A D | mutex.rs | 136 for p in inner.wait_list.iter() { in check_pid_in_wait_list() 137 if p.pid() == pid { in check_pid_in_wait_list()
|
/DragonOS/kernel/src/common/ ! |
H A D | glib.h | 27 typeof(((type *)0)->member) *p = (ptr); \ 28 (type *)((unsigned long)p - (unsigned long)&(((type *)0)->member)); \
|
/DragonOS/kernel/src/driver/rtc/ ! |
H A D | interface.rs | 14 .and_then(|p| p.upgrade()) in rtc_read_time()
|
/DragonOS/kernel/src/mm/allocator/ ! |
H A D | bump.rs | 114 for p in iter { in ensure_early_mapping() 116 .translate(MMA::phys_2_virt(p.phys_address()).unwrap()) in ensure_early_mapping() 119 let vaddr = MMA::phys_2_virt(p.phys_address()).unwrap(); in ensure_early_mapping() 120 pseudo_map_phys(vaddr, p.phys_address(), PageFrameCount::new(1)); in ensure_early_mapping()
|
/DragonOS/kernel/src/mm/ ! |
H A D | c_adapter.rs | 62 let p = guard.remove(&vaddr); in kfree() localVariable 65 if p.is_none() { in kfree() 69 let (vaddr, len, cap) = p.unwrap(); in kfree()
|
/DragonOS/kernel/src/debug/klog/ ! |
H A D | mm.rs | 59 pid.map(|p| p.data()), in log()
|
/DragonOS/user/apps/http_server/ ! |
H A D | main.c | 100 void *p = buffer; in send_file() local 103 int wsize = write(sockfd, p, min(readSize, MAX_RESPONSE_SIZE)); in send_file() 110 p += wsize; in send_file()
|
/DragonOS/docs/userland/appdev/ ! |
H A D | index.rst | 11 DADK文档 <https://docs.dragonos.org.cn/p/dadk/>
|
/DragonOS/user/apps/user-manage/ ! |
H A D | README.md | 86 groupadd -g\<gid\> -p\<passwd\> groupname 90 -p 设置密码
|
/DragonOS/kernel/src/arch/x86_64/smp/ ! |
H A D | mod.rs | 123 let p = self as *const SmpBootData as *mut SmpBootData; in set_cpu_count() localVariable 124 (*p).cpu_count = cpu_count.try_into().unwrap(); in set_cpu_count() 130 let p = self as *const SmpBootData as *mut SmpBootData; in set_phys_id() localVariable 131 (*p).phys_id[cpu_id.data() as usize] = phys_id; in set_phys_id()
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ ! |
H A D | pages.rs | 491 p: *mut T, field 496 Rawlink { p: ptr::null_mut() } in default() 503 Rawlink { p: ptr::null_mut() } in none() 508 Rawlink { p: n } in some() 519 self.p.as_ref() in resolve() 529 self.p.as_mut() in resolve_mut()
|
/DragonOS/kernel/src/exception/ ! |
H A D | irqchip.rs | 358 let parent_data = irq_data.parent_data().and_then(|p| p.upgrade()); in irq_chip_ack_parent() 374 data = d.parent_data().and_then(|p| p.upgrade()); in irq_chip_retrigger_hierarchy() 448 let parent_data = dt.parent_data().and_then(|p| p.upgrade()); in __irq_do_set_handler()
|
/DragonOS/tools/debugging/logmonitor/src/ ! |
H A D | main.rs | 31 let p = CMD_ARGS.read().unwrap().clone(); in prepare_env() localVariable 32 let log_dir = p.unwrap().log_dir; in prepare_env()
|
/DragonOS/kernel/crates/rbpf/src/ ! |
H A D | helpers.rs | 149 let mut p = (ptr + i) as *mut u8; in memfrob() localVariable 150 *p ^= 0b101010; in memfrob()
|
/DragonOS/kernel/src/driver/firmware/efi/ ! |
H A D | tables.rs | 117 let p = unsafe { in parse_config_tables() localVariable 124 let psize: usize = p.size.try_into().unwrap(); in parse_config_tables() 141 p.count as usize, in parse_config_tables() 155 prev_paddr = p.next_paddr; in parse_config_tables()
|
/DragonOS/kernel/src/syscall/ ! |
H A D | user_access.rs | 32 let p = dest.data() as *mut u8; in clear_user() localVariable 34 p.write_bytes(0, len); in clear_user() 41 let p = dest.data() as *mut u8; in copy_to_user() localVariable 43 p.copy_from_nonoverlapping(src.as_ptr(), src.len()); in copy_to_user()
|
/DragonOS/kernel/src/filesystem/ ! |
H A D | mbr.rs | 181 let p = Partition::new_raw( in next() localVariable 187 return Some(p); in next()
|
/DragonOS/kernel/src/arch/riscv64/process/ ! |
H A D | mod.rs | 323 let p = stack_base.data() as *const *const ProcessControlBlock; in arch_current_pcb() localVariable 324 if core::intrinsics::unlikely((unsafe { *p }).is_null()) { in arch_current_pcb() 325 error!("p={:p}", p); in arch_current_pcb() 331 ManuallyDrop::new(Weak::from_raw(*p)); in arch_current_pcb()
|