Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 30) sorted by relevance

12

/DragonOS/user/apps/test_eventfd/
H A Dmain.c23 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 Dmmio_buddy.rs206 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 Dsyscall.rs585 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 Dc_adapter.rs118 .unwrap_or_else(|err| err.to_posix_errno()); in rs_mmio_release()
/DragonOS/kernel/src/init/
H A Dinitial_kthread.rs28 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 Dsymlink.rs81 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 Dmain.rs73 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 Dmain.rs32 Err(err) => { in main()
33 println!("Fork failed: {:?}", err); in main()
/DragonOS/kernel/src/driver/pci/
H A Decam.rs64 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/kernel/crates/intertrait/macros/src/
H A Dlib.rs75 Err(err) => vec![err.to_compile_error(), input.into()] in cast_to()
/DragonOS/user/apps/test-mount/src/
H A Dmain.rs31 let err = errno(); in main() localVariable
32 println!("Mount failed with error code: {}", err.0); in main()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs106 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 Dpci_host_ecam.rs63 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 Dmain.rs150 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 Dvirtio.rs51 Err(err) => { in virtio_probe_pci()
52 error!("Pci transport create failed because of error: {}", err); in virtio_probe_pci()
/DragonOS/kernel/src/driver/base/device/
H A Ddd.rs530 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 Dmod.rs87 HbaPortType::Unknown(err) => { in ahci_init()
88 debug!("<ahci_rust_init> Find a Unknown({:?}) type Disk.", err); in ahci_init()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs161 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 Dtty_driver.rs283 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 Dexit.rs117 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 Dasm_parser.rs114 Err(err) => Err(err.to_string()), in parse()
121 Err(err) => Err(err.to_string()), in parse()
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs95 if let Err(err) = transport.setup_irq(dev_id.clone()) { in new()
96 error!("VirtIONetDevice '{dev_id:?}' setup_irq failed: {:?}", err); in new()
555 Err(err) => panic!("VirtIO receive failed: {}", err), in receive()
/DragonOS/kernel/src/libs/
H A Delf.rs229 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 Dmod.rs529 Err(err) => Err(err), in mkdir()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs311 Err(err) => { in add_dir()
312 return Err(err); in add_dir()

12