/DragonOS/user/apps/test_eventfd/ |
H A D | main.c | 23 err(EXIT_FAILURE, "eventfd"); in main() 33 err(EXIT_FAILURE, "write"); in main() 45 err(EXIT_FAILURE, "read"); in main() 50 err(EXIT_FAILURE, "fork"); in main()
|
/DragonOS/kernel/src/mm/ |
H A D | mmio_buddy.rs | 206 Err(err) => { in query_addr_region() 208 return Err(err); in query_addr_region() 225 Err(err) => { in query_addr_region() 227 return Err(err); in query_addr_region() 238 Err(err) => return Err(err), in query_addr_region() 265 Err(err) => { in query_addr_region() 267 return Err(err); in query_addr_region() 277 Err(err) => { in query_addr_region() 279 return Err(err); in query_addr_region() 289 Err(err) => return Err(err), in query_addr_region() [all …]
|
H A D | syscall.rs | 585 let mut err = Err(SystemError::ENOMEM); in msync() localVariable 607 err = Err(SystemError::EBUSY); in msync() 623 err = file.write(len, unsafe { in msync() 627 if err.is_err() { in msync() 630 err = unmapped_error; in msync() 640 err = unmapped_error; in msync() 652 return err; in msync()
|
H A D | c_adapter.rs | 118 .unwrap_or_else(|err| err.to_posix_errno()); in rs_mmio_release()
|
/DragonOS/kernel/src/init/ |
H A D | initial_kthread.rs | 28 kernel_init().unwrap_or_else(|err| { in initial_kernel_thread() 29 log::error!("Failed to initialize kernel: {:?}", err); in initial_kernel_thread() 46 net_init().unwrap_or_else(|err| { in kernel_init() 47 error!("Failed to initialize network: {:?}", err); in kernel_init() 57 do_initcalls().unwrap_or_else(|err| { in kenrel_init_freeable() 58 panic!("Failed to initialize subsystems: {:?}", err); in kenrel_init_freeable()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | symlink.rs | 81 let err = kn.unwrap_err(); in do_create_link_sd() localVariable 82 if warn && err == SystemError::EEXIST { in do_create_link_sd() 85 return Err(err); in do_create_link_sd()
|
/DragonOS/user/apps/test-symlink/src/ |
H A D | main.rs | 73 let err = Errno::last(); in umount_test_ramfs() localVariable 74 println!("Errno: {}", err); in umount_test_ramfs() 75 println!("Infomation: {}", err.desc()); in umount_test_ramfs()
|
/DragonOS/user/apps/test_namespace/src/ |
H A D | main.rs | 32 Err(err) => { in main() 33 println!("Fork failed: {:?}", err); in main()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | ecam.rs | 64 if let Err(err) = root { in add_ecam_root_info() 65 error!("add_ecam_root_info(): failed to create PciRoot: {:?}", err); in add_ecam_root_info()
|
/DragonOS/user/apps/test-mount/src/ |
H A D | main.rs | 31 let err = errno(); in main() localVariable 32 println!("Mount failed with error code: {}", err.0); in main()
|
/DragonOS/kernel/crates/intertrait/macros/src/ |
H A D | lib.rs | 74 Err(err) => vec![err.to_compile_error(), input.into()] in cast_to()
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | mod.rs | 106 if let Err(err) = ret { in ldisc_setup() 107 if err == SystemError::ENOSYS { in ldisc_setup() 108 return Err(err); in ldisc_setup()
|
/DragonOS/kernel/src/arch/riscv64/pci/ |
H A D | pci_host_ecam.rs | 63 if let Err(err) = do_check(node) { in pci_host_ecam_driver_init() 66 node.name, err in pci_host_ecam_driver_init()
|
/DragonOS/user/apps/test-chown/src/ |
H A D | main.rs | 150 let err = Errno::last(); in umount_test_ramfs() localVariable 151 println!("Errno: {}", err); in umount_test_ramfs() 152 println!("Infomation: {}", err.desc()); in umount_test_ramfs()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | virtio.rs | 48 Err(err) => { in virtio_probe_pci() 49 error!("Pci transport create failed because of error: {}", err); in virtio_probe_pci()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | dd.rs | 530 let err = r.unwrap_err(); in call_driver_probe() localVariable 531 match err { in call_driver_probe() 537 err in call_driver_probe() 546 err in call_driver_probe() 551 return Err(err); in call_driver_probe()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | mod.rs | 86 HbaPortType::Unknown(err) => { in ahci_init() 87 debug!("<ahci_rust_init> Find a Unknown({:?}) type Disk.", err); in ahci_init()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 161 if let Err(err) = ret { in open() 162 if err == SystemError::ENOSYS { in open() 165 return Err(err); in open() 376 let err = user_writer.copy_one_to_user(&winsize, 0); in ioctl() localVariable 377 if err.is_err() { in ioctl()
|
H A D | tty_driver.rs | 283 if let Err(err) = res { in driver_install_tty() 284 if err == SystemError::ENOSYS { in driver_install_tty() 290 err in driver_install_tty() 292 return Err(err); in driver_install_tty()
|
/DragonOS/kernel/src/process/ |
H A D | exit.rs | 117 if let Some(err) = &kwo.no_task_error { in do_wait() 118 retval = Err(err.clone()); in do_wait()
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | asm_parser.rs | 114 Err(err) => Err(err.to_string()), in parse() 121 Err(err) => Err(err.to_string()), in parse()
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 95 if let Err(err) = transport.setup_irq(dev_id.clone()) { in new() 96 error!("VirtIONetDevice '{dev_id:?}' setup_irq failed: {:?}", err); in new() 561 Err(err) => panic!("VirtIO receive failed: {}", err), in receive()
|
/DragonOS/kernel/src/libs/ |
H A D | elf.rs | 229 let map_err_handler = |err: SystemError| { in load_elf_segment() 230 if err == SystemError::EEXIST { in load_elf_segment() 237 err in load_elf_segment()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 529 Err(err) => Err(err), in mkdir()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 311 Err(err) => { in add_dir() 312 return Err(err); in add_dir()
|