/DragonOS-0.1.9/kernel/src/libs/ |
D | wait_queue.rs | 36 ProcessManager::mark_sleep(true).unwrap_or_else(|e| { in sleep() 37 panic!("sleep error: {:?}", e); in sleep() 52 ProcessManager::mark_sleep(true).unwrap_or_else(|e| { in sleep_with_func() 53 panic!("sleep error: {:?}", e); in sleep_with_func() 82 ProcessManager::mark_sleep(true).unwrap_or_else(|e| { in sleep_without_schedule() 83 panic!("sleep error: {:?}", e); in sleep_without_schedule() 94 ProcessManager::mark_sleep(false).unwrap_or_else(|e| { in sleep_without_schedule_uninterruptible() 95 panic!("sleep error: {:?}", e); in sleep_without_schedule_uninterruptible() 105 ProcessManager::mark_sleep(false).unwrap_or_else(|e| { in sleep_uninterruptible() 106 panic!("sleep error: {:?}", e); in sleep_uninterruptible() [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/ |
D | group.rs | 40 if let Err(e) = self.do_create_group(kobj, group, update) { in do_create_groups() 48 return Err(e); in do_create_groups() 87 .map_err(|e| { in do_create_group() 88 if e == SystemError::EEXIST { in do_create_group() 91 e in do_create_group() 98 if let Err(e) = self.group_create_files(parent_inode.clone(), kobj, group, update) { in do_create_group() 102 return Err(e); in do_create_group() 139 .map_err(|e| { in remove_group() 141 e in remove_group() 175 let mut e = Ok(()); in group_create_files() localVariable [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/interrupt/ |
D | c_adapter.rs | 9 .unwrap_or_else(|e| e.to_posix_errno()); in rs_ipi_send_smp_init() 16 .unwrap_or_else(|e| e.to_posix_errno()); in rs_ipi_send_smp_startup()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/ |
D | vmx_asm_wrapper.rs | 10 Err(e) => { in vmxon() 11 kdebug!("vmxon fail: {:?}", e); in vmxon() 29 Err(e) => { in vmx_vmwrite() 30 kdebug!("vmx_write fail: {:?}", e); in vmx_vmwrite() 41 Err(e) => { in vmx_vmread() 42 kdebug!("vmx_read fail: {:?}", e); in vmx_vmread()
|
/DragonOS-0.1.9/kernel/src/process/ |
D | fork.rs | 168 Self::copy_process(¤t_pcb, &pcb, args, current_trapframe).map_err(|e| { in fork() 173 e in fork() 175 e in fork() 180 procfs_register_pid(pcb.pid()).unwrap_or_else(|e| { in fork() 184 e in fork() 188 ProcessManager::wakeup(&pcb).unwrap_or_else(|e| { in fork() 192 e in fork() 242 let new_address_space = old_address_space.write_irqsave().try_clone().unwrap_or_else(|e| { in copy_mm() 245 current_pcb.pid(), new_pcb.pid(), e in copy_mm() 393 Self::copy_flags(&clone_flags, &pcb).unwrap_or_else(|e| { in copy_process() [all …]
|
D | syscall.rs | 78 if let Err(e) = r { in execve() 79 panic!("Failed to execve: {:?}", e); in execve() 196 procfs_register_pid(pcb.pid()).unwrap_or_else(|e| { in clone() 200 e in clone() 215 ProcessManager::wakeup(&pcb).unwrap_or_else(|e| { in clone() 219 e in clone()
|
/DragonOS-0.1.9/kernel/src/driver/base/device/ |
D | dd.rs | 151 if let Err(e) = r { in do_device_attach_driver() 153 if e != SystemError::ENOSYS { in do_device_attach_driver() 157 e in do_device_attach_driver() 159 return Err(e); in do_device_attach_driver() 210 if let Err(e) = r { in device_bind_driver() 213 return Err(e); in device_bind_driver() 406 self.add_to_sysfs(device).map_err(|e| { in really_probe() 410 e in really_probe() 414 e in really_probe() 417 self.call_driver_probe(device, driver).map_err(|e| { in really_probe() [all …]
|
/DragonOS-0.1.9/kernel/src/common/math/ |
D | round.c | 20 int e = u.i >> 52 & 0x7ff; in round() local 23 if (e >= 0x3ff + 52) in round() 27 if (e < 0x3ff - 1) in round()
|
/DragonOS-0.1.9/kernel/src/driver/base/ |
D | kobject.rs | 132 let r = attr.show(kobj, buf).map_err(|e| { in show() 133 if e == SystemError::EOPNOTSUPP_OR_ENOTSUP { in show() 136 e in show() 149 let r = attr.store(kobj, buf).map_err(|e| { in store() 150 if e == SystemError::EOPNOTSUPP_OR_ENOTSUP { in store() 153 e in store() 194 if let Err(e) = r { in add_kobj() 200 if e == SystemError::EEXIST { in add_kobj() 204 return Err(e); in add_kobj() 220 if let Err(e) = r { in create_dir() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/ |
D | init.rs | 52 if let Err(e) = r { in efi_init() 53 kerror!("Failed to initialize UEFI: {:?}", e); in efi_init() 100 .map_err(|e| { in uefi_init() 110 let st_vaddr = EarlyIoRemap::map_not_aligned(system_table, st_size, true).map_err(|e| { in uefi_init() 112 e in uefi_init() 135 .map_err(|e| { in uefi_init() 137 e in uefi_init() 162 .map_err(|e| { in uefi_init() 165 e in uefi_init()
|
D | tables.rs | 65 EarlyIoRemap::unmap(fw_ptr).map_err(|e|{ in report_systable_header() 67 e in report_systable_header() 85 if let Err(e) = r { in parse_config_tables() 106 .map_err(|e| { in parse_config_tables() 128 .map_err(|e| { in parse_config_tables() 131 e in parse_config_tables() 145 .map_err(|e| { in parse_config_tables() 148 e in parse_config_tables() 375 if let Err(e) = vaddr { in match_table() 376 return Some(Err(e)); in match_table()
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | manage.rs | 172 |e: SystemError, mut action_guard: SpinLockGuard<'_, InnerIrqAction>| -> SystemError { in inner_setup_irq() 185 return e; in inner_setup_irq() 188 let err_out_bus_unlock = |e: SystemError, in inner_setup_irq() 195 return err_out_thread(e, action_guard); in inner_setup_irq() 198 let err_out_unlock = |e: SystemError, in inner_setup_irq() 205 return err_out_bus_unlock(e, desc, req_mutex_guard, action_guard); in inner_setup_irq() 266 if let Err(e) = self.setup_irq_thread(irq, secondary_guard.deref(), true) { in inner_setup_irq() 267 return Err(err_out_thread(e, action_guard)); in inner_setup_irq() 304 if let Err(e) = self.irq_request_resources(desc.clone()) { in inner_setup_irq() 310 e in inner_setup_irq() [all …]
|
D | resend.rs | 75 if let Err(e) = desc_inner_guard in try_retrigger() 81 if e != SystemError::ENOSYS { in try_retrigger() 82 return Err(e); in try_retrigger()
|
/DragonOS-0.1.9/tools/debugging/logmonitor/src/ |
D | event.rs | 50 CrosstermEvent::Key(e) => sender.send(Event::Key(e)), in new() 51 CrosstermEvent::Mouse(e) => sender.send(Event::Mouse(e)), in new()
|
D | main.rs | 51 Event::Backend(e) => { in start_headless_app() 52 handle_backend_events(e, &mut app)?; in start_headless_app() 89 Event::Backend(e) => { in start_tui_app() 90 handle_backend_events(e, &mut app)?; in start_tui_app()
|
/DragonOS-0.1.9/kernel/src/smp/ |
D | c_adapter.rs | 7 .unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_kick_cpu()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/syscall/ |
D | mod.rs | 113 .unwrap_or_else(|e| e.to_posix_errno() as usize), in syscall_handler() 121 Syscall::handle(syscall_num, &args, frame).unwrap_or_else(|e| e.to_posix_errno() as usize) in syscall_handler() 146 return r.map(|_| 0).unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_exec_init_process()
|
/DragonOS-0.1.9/kernel/crates/unified-init/src/ |
D | lib.rs | 68 initializer.call().unwrap_or_else(|e| { 69 kerror!("Failed to call initializer {}: {:?}", initializer.name(), e);
|
/DragonOS-0.1.9/build-scripts/kernel_build/src/utils/ |
D | mod.rs | 32 if let Some(e) = ext_name { in list_all_files() 34 if ext == e { in list_all_files()
|
/DragonOS-0.1.9/kernel/src/time/ |
D | timekeep.rs | 23 if let Err(e) = r { in ktime_get_real() 24 return e as ktime_t; in ktime_get_real()
|
/DragonOS-0.1.9/kernel/src/misc/ |
D | ksysfs.rs | 31 .map_err(|e| { in ksysfs_init() 32 kerror!("Failed to create sysfs groups for kernel kset: {:?}", e); in ksysfs_init()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/process/ |
D | kthread.rs | 45 let pid = ProcessManager::fork(&mut frame, clone_flags).map_err(|e| { in __inner_create() 47 e in __inner_create()
|
/DragonOS-0.1.9/docs/kernel/memory_management/ |
D | mmio.md | 63   伙伴算法的核心思想是当应用申请内存时,每次都分配比申请的内存大小更大的最小内存块,同时分配出去的内存块大小为$2^nB$。(e.g. 假设某应用申请了$3B$内存,显然并没有… 65   那么当伙伴系统中没有如此“合适”的内存块时该怎么办呢?系统先会去寻找更大的内存块,如果找到了,则会将大内存块分裂成合适的内存块分配给应用。(e.g. 假设申请$3B$内存,此… 67   如果系统没有找到更大的内存块,系统将会尝试合并较小的内存块,直到符合申请空间的大小。(e.g. 假设申请$3B$内存,系统检查内存池发现只有两个$2B$的内存块,那么系统将会… 158 …由于每个内存块大小都为$2^{n}$ bytes,那么可以令$exp = n$。index与exp的换算公式如下:$index = exp - 12$。e.g. 一个大小为$2^{12}$ byt…
|
/DragonOS-0.1.9/kernel/src/driver/acpi/ |
D | mod.rs | 84 Err(e) => { in map_tables() 85 e1 = e; in map_tables() 163 if let Err(ref e) = r { in platform_info() 166 e in platform_info()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | mod.rs | 63 Err(e) => { in kvm_init() 64 kdebug!("[-] CPU does not support Intel VMX: {:?}", e); in kvm_init()
|