/DragonOS-0.1.8/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.8/user/libs/libc/src/math/ |
D | round.c | 18 int e = u.i >> 52 & 0x7ff; in round() local 21 if (e >= 0x3ff + 52) in round() 25 if (e < 0x3ff - 1) in round()
|
/DragonOS-0.1.8/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.8/kernel/src/arch/x86_64/ |
D | syscall.rs | 144 if let Err(e) = r { in rs_do_execve() 145 panic!("Failed to execve: {:?}", e); in rs_do_execve() 151 .unwrap_or_else(|e| { in rs_do_execve() 155 e in rs_do_execve() 170 return r.map(|_| 0).unwrap_or_else(|e| e.to_posix_errno() as usize); in rs_exec_init_process() 217 .unwrap_or_else(|e| panic!("Failed to load binary file: {:?}, path: {:?}", e, path)); in tmp_rs_execve()
|
/DragonOS-0.1.8/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.8/kernel/src/driver/tty/ |
D | mod.rs | 203 if let Err(e) = r { in write_stdin() 204 match e { in write_stdin() 268 if let Err(e) = r { in write_output() 269 match e { in write_output()
|
D | tty_device.rs | 96 e => { in input() 151 Err(e) => { in read_at() 153 return Err(e); in read_at() 185 Err(e) => { in write_at() 187 return Err(e); in write_at()
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 517 for e in self.to_iter(fs) { in find_entry() 518 if e.eq_name(name) { in find_entry() 519 if expect_dir.is_some() && Some(e.is_dir()) != expect_dir { in find_entry() 520 if e.is_dir() { in find_entry() 529 return Ok(e); in find_entry() 533 sng.add_name(&e.short_name_raw()) in find_entry() 584 .map(|e| e.to_file())?; in create_file() 657 .map(|e| e.to_dir())?; in create_dir() 685 let e: Result<FATDirEntry, SystemError> = in check_existence() localVariable 687 match e { in check_existence() [all …]
|
D | fs.rs | 574 Err(e) => return Err(e), in allocate_cluster()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | syscall.rs | 278 Err(e) => { in chdir() 279 kerror!("Change Directory Failed, Error = {:?}", e); in chdir() 286 Err(e) => { in chdir() 287 kerror!("INode Get MetaData Failed, Error = {:?}", e); in chdir() 610 Err(e) => return Err(e), in do_fstat() 631 Err(e) => return Err(e), in fstat()
|
D | file.rs | 262 Err(e) => { in readdir() 264 return Err(e); in readdir()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | mmio_buddy.rs | 174 for e in exp + 1..MMIO_BUDDY_MAX_EXP + 1 { in query_addr_region() 176 &mut self.free_regions[exp2index(e) as usize].lock(); in query_addr_region() 181 for e2 in (exp + 1..e + 1).rev() { in query_addr_region() 182 if e2 == e { in query_addr_region() 248 for e in MMIO_BUDDY_MIN_EXP..exp { in query_addr_region() 249 if e != exp - 1 { in query_addr_region()
|
D | page.rs | 783 .any(|e| e.present()); in unmap_phys_inner()
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | mod.rs | 392 bus_register(platform_device.clone()).map_err(|e| e.into())?; in platform_bus_init() 395 bus_driver_register(platform_driver.clone()).map_err(|e| e.into())?; in platform_bus_init()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | fork.rs | 161 let new_address_space = old_address_space.write().try_clone().unwrap_or_else(|e| { in copy_mm() 164 current_pcb().pid, new_pcb.pid, e in copy_mm()
|
D | exec.rs | 191 .unwrap_or_else(|e| panic!("load_binary_file failed: error: {e:?}, param: {param:?}")); in load_binary_file()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | elf.rs | 574 let e = self in load() localVariable 584 .map_err(|e| match e { in load() 587 _ => ExecError::Other(format!("load_elf_segment failed: {:?}", e)), in load() 591 if !e.1 { in load() 592 return Err(ExecError::BadAddress(Some(e.0))); in load()
|
D | lz4.c | 438 BYTE *const e = (BYTE *)dstEnd; in LZ4_wildCopy8() local 445 } while (d < e); in LZ4_wildCopy8() 500 BYTE *const e = (BYTE *)dstEnd; in LZ4_wildCopy32() local 508 } while (d < e); in LZ4_wildCopy32()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci.rs | 455 Err(e) => Some(Err(e)), in bar_ioremap() 1039 Err(e) => { in pci_check_function() 1040 return Err(e); in pci_check_function() 1071 Err(e) => { in pci_check_device() 1072 return Err(e); in pci_check_device() 1125 if let Err(e) = pci_check_all_buses() { in pci_init() 1126 kerror!("pci init failed when checking bus because of error: {}", e); in pci_init()
|
/DragonOS-0.1.8/kernel/src/time/ |
D | timer.rs | 314 Err(e) => { in rs_schedule_timeout() 316 return e.to_posix_errno() as i64; in rs_schedule_timeout()
|
/DragonOS-0.1.8/ |
D | bochsrc | 38 logprefix: %t%e%d
|
/DragonOS-0.1.8/kernel/src/syscall/ |
D | mod.rs | 966 Err(e) => Err(e), in handle() 996 let r = r.unwrap_or_else(|e| e.to_posix_errno() as usize); in handle()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 505 if let Err(e) = devfs_inode { 506 kerror!("failed to get DevFS ref. errcode = {:?}", e);
|
/DragonOS-0.1.8/docs/introduction/ |
D | build_system.md | 142 echo -e "[source.crates-io] \n \
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 773 Err(e) => { in write() 847 Err(e) => { in connect() 849 match e { in connect()
|