Home
last modified time | relevance | path

Searched refs:Err (Results 1 – 25 of 233) sorted by relevance

12345678910

/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvmx_asm_wrapper.rs11 Err(e) => { in vmxon()
13 Err(SystemError::EVMXONFailed) in vmxon()
22 Err(_) => Err(SystemError::EVMXOFFFailed), in vmxoff()
30 Err(e) => { in vmx_vmwrite()
33 Err(SystemError::EVMWRITEFailed) in vmx_vmwrite()
42 Err(e) => { in vmx_vmread()
44 Err(SystemError::EVMREADFailed) in vmx_vmread()
52 Err(_) => Err(SystemError::EVMPRTLDFailed), in vmx_vmptrld()
95 Err(_) => Err(SystemError::EVMPRTLDFailed), in vmx_vmclear()
H A Dept.rs18 return Err(SystemError::ENOSYS); in check_ept_features()
56 Err(id) if id == cpuid => break, in lock_cpu()
58 Err(_) => core::hint::spin_loop(), in lock_cpu()
98 return Err(SystemError::EAGAIN_OR_EWOULDBLOCK); in walk()
/DragonOS/kernel/src/driver/pci/
H A Dpci_irq.rs239 return Err(PciError::PciIrqError(PciIrqError::IrqTypeNotSupported)); in irq_enable()
242 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in irq_enable()
246 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in irq_enable()
270 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in msix_enable()
273 return Err(PciError::PciIrqError(PciIrqError::IrqTypeUnmatch)); in msix_enable()
277 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in msix_enable()
301 return Err(PciError::PciIrqError(PciIrqError::IrqNotInited)); in msi_enable()
304 return Err(PciError::PciIrqError(PciIrqError::IrqTypeUnmatch)); in msi_enable()
308 return Err(PciError::PciIrqError(PciIrqError::PciDeviceNotSupportIrq)); in msi_enable()
321 return Err(PciError::PciIrqError(PciIrqError::InvalidIrqIndex( in irq_install()
[all …]
/DragonOS/kernel/src/mm/
H A Dmmio_buddy.rs128 return Err(SystemError::EINVAL); in give_back_block()
177 return Err(MmioResult::WRONGEXP); in query_addr_region()
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()
[all …]
H A Dsyscall.rs317 return Err(SystemError::EINVAL); in mmap()
323 return Err(SystemError::ENOSYS); in mmap()
379 return Err(SystemError::EINVAL); in mremap()
386 return Err(SystemError::EINVAL); in mremap()
391 return Err(SystemError::EINVAL); in mremap()
400 return Err(SystemError::EINVAL); in mremap()
406 return Err(SystemError::EINVAL); in mremap()
414 return Err(SystemError::ENOSYS); in mremap()
455 return Err(SystemError::EINVAL); in munmap()
458 return Err(SystemError::EINVAL); in munmap()
[all …]
/DragonOS/kernel/src/libs/
H A Dvec_cursor.rs48 return Err(SystemError::E2BIG); in read_u8()
57 return Err(SystemError::E2BIG); in read_u16()
71 return Err(SystemError::E2BIG); in read_u32()
85 return Err(SystemError::E2BIG); in read_u64()
104 return Err(SystemError::E2BIG); in read_exact()
116 return Err(SystemError::E2BIG); in read_u16_into()
139 return Err(SystemError::EINVAL); in seek()
144 return Err(SystemError::EOVERFLOW); in seek()
153 return Err(SystemError::E2BIG); in write_u8()
165 return Err(SystemError::E2BIG); in write_u16()
[all …]
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs129 return Err(SystemError::ENOSYS); in mmap()
141 return Err(SystemError::ENOSYS); in open()
150 return Err(SystemError::ENOSYS); in close()
192 return Err(SystemError::ENOSYS); in poll()
201 return Err(SystemError::ENOSYS); in metadata()
210 return Err(SystemError::ENOSYS); in set_metadata()
222 return Err(SystemError::ENOSYS); in resize()
260 return Err(SystemError::ENOSYS); in create_with_data()
272 return Err(SystemError::ENOSYS); in link()
283 return Err(SystemError::ENOSYS); in unlink()
[all …]
/DragonOS/kernel/src/exception/
H A Dresend.rs33 return Err(SystemError::EINVAL); in irq_check_and_resend()
40 return Err(SystemError::EBUSY); in irq_check_and_resend()
58 ret = Err(SystemError::EINVAL); in irq_check_and_resend()
74 if let Err(e) = desc_inner_guard in try_retrigger()
81 return Err(e); in try_retrigger()
H A Dirqchip.rs43 Err(SystemError::ENOSYS) in irq_startup()
48 Err(SystemError::ENOSYS) in irq_shutdown()
55 Err(SystemError::ENOSYS) in irq_enable()
72 Err(SystemError::ENOSYS) in irq_mask()
87 Err(SystemError::ENOSYS) in irq_unmask()
105 Err(SystemError::ENOSYS) in irq_set_affinity()
110 Err(SystemError::ENOSYS) in retrigger()
127 Err(SystemError::ENOSYS) in irq_set_type()
133 Err(SystemError::ENOSYS) in irq_set_wake()
186 Err(SystemError::ENOSYS) in irqchip_state()
[all …]
H A Dmanage.rs119 return Err(SystemError::ENOTCONN); in request_threaded_irq()
135 return Err(SystemError::EINVAL); in request_threaded_irq()
140 return Err(SystemError::EINVAL); in request_threaded_irq()
146 return Err(SystemError::EINVAL); in request_threaded_irq()
236 return Err(SystemError::ENOSYS); in inner_setup_irq()
251 return Err(SystemError::EINVAL); in inner_setup_irq()
265 if let Err(e) = self.setup_irq_thread(irq, secondary_guard.deref(), true) { in inner_setup_irq()
266 return Err(err_out_thread(e, action_guard)); in inner_setup_irq()
303 if let Err(e) = self.irq_request_resources(desc.clone()) { in inner_setup_irq()
311 return Err(err_out_bus_unlock( in inner_setup_irq()
[all …]
/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs84 return Err(syn::Error::new( in check_function_signature()
104 return Err(syn::Error::new( in check_function_signature()
115 return Err(syn::Error::new(tuple.span(), "Expected empty tuple")); in check_function_signature()
118 return Err(syn::Error::new(type_arg.span(), "Expected empty tuple")); in check_function_signature()
121 return Err(syn::Error::new( in check_function_signature()
137 return Err(syn::Error::new( in check_function_signature()
143 return Err(syn::Error::new( in check_function_signature()
154 Err(syn::Error::new( in check_function_signature()
197 return Err(parse::Error::new( in parse()
212 return Err(parse::Error::new( in parse()
[all …]
/DragonOS/docs/kernel/libs/lib_ui/
H A Dscm.md16 return Err(SystemError::ENOSYS);
20 return Err(SystemError::ENOSYS);
24 return Err(SystemError::ENOSYS);
28 return Err(SystemError::ENOSYS);
32 return Err(SystemError::ENOSYS);
36 /// 失败:Err(错误码)
39 return Err(SystemError::ENOSYS);
/DragonOS/kernel/src/driver/tty/
H A Dtty_job_control.rs60 return Err(SystemError::EIO); in tty_check_change()
65 return Err(SystemError::ERESTART); in tty_check_change()
77 Err(e) => { in job_ctrl_ioctl()
79 return Err(SystemError::ENOTTY); in job_ctrl_ioctl()
81 return Err(e); in job_ctrl_ioctl()
102 return Err(SystemError::ENOTTY); in job_ctrl_ioctl()
115 return Err(SystemError::ENOTTY); in job_ctrl_ioctl()
138 return Err(SystemError::ENOIOCTLCMD); in job_ctrl_ioctl()
/DragonOS/kernel/src/filesystem/fat/
H A Dbpb.rs194 return Err(SystemError::EINVAL); in validate()
199 return Err(SystemError::EINVAL); in validate()
204 return Err(SystemError::EINVAL); in validate()
209 return Err(SystemError::EINVAL); in validate()
214 return Err(SystemError::EINVAL); in validate()
301 return Err(SystemError::EINVAL); in new()
315 return Err(SystemError::EINVAL); in validate()
318 return Err(SystemError::EINVAL); in validate()
321 return Err(SystemError::EINVAL); in validate()
326 return Err(SystemError::EINVAL); in validate()
[all …]
/DragonOS/kernel/src/net/socket/
H A Dinet.rs126 Err(_) => { in read()
129 return (Err(SystemError::EAGAIN_OR_EWOULDBLOCK), Endpoint::Ip(None)); in read()
148 Err(raw::SendError::BufferFull) => { in write()
149 return Err(SystemError::ENOBUFS); in write()
167 return Err(SystemError::ENETUNREACH); in write()
205 return Err(SystemError::EINVAL); in write()
209 return Err(SystemError::ENOTCONN); in write()
313 Err(_) => return Err(SystemError::EINVAL), in do_bind()
316 return Err(SystemError::EINVAL); in do_bind()
371 return Err(SystemError::ENOTCONN); in write()
[all …]
/DragonOS/kernel/src/virt/kvm/
H A Dvm.rs59 return Err(SystemError::EINVAL); in set_user_memory_region()
67 return Err(SystemError::EINVAL); in set_user_memory_region()
71 return Err(SystemError::EINVAL); in set_user_memory_region()
80 return Err(SystemError::EINVAL); in set_user_memory_region()
107 return Err(SystemError::EINVAL); in set_user_memory_region()
122 return Err(SystemError::EINVAL); in set_user_memory_region()
141 return Err(SystemError::EEXIST); in set_user_memory_region()
173 return Err(SystemError::EINVAL); in check_memory_region_flag()
/DragonOS/kernel/src/arch/x86_64/kvm/
H A Dmod.rs34 return Err(SystemError::ENOSYS); in kvm_arch_cpu_supports_vm()
41 return Err(SystemError::ENOSYS); in kvm_arch_cpu_supports_vm()
55 return Err(SystemError::EINVAL); in kvm_arch_dev_ioctl()
72 Err(e) => { in kvm_arch_vcpu_ioctl_run()
75 return Err(e); in kvm_arch_vcpu_ioctl_run()
/DragonOS/kernel/src/bpf/map/
H A Darray_map.rs71 return Err(SystemError::EINVAL); in new()
85 return Err(SystemError::EINVAL); in lookup_elem()
89 return Err(SystemError::EINVAL); in lookup_elem()
96 return Err(SystemError::EINVAL); in update_elem()
100 return Err(SystemError::EINVAL); in update_elem()
103 return Err(SystemError::EINVAL); in update_elem()
111 Err(SystemError::EINVAL) in delete_elem()
115 return Err(SystemError::EINVAL); in for_each_elem()
132 Err(SystemError::EINVAL) in lookup_and_delete_elem()
138 return Err(SystemError::EINVAL); in get_next_key()
[all …]
H A Dmod.rs42 Err(SystemError::ENOSYS) in lookup_elem()
48 Err(SystemError::ENOSYS) in update_elem()
54 Err(SystemError::ENOSYS) in delete_elem()
61 Err(SystemError::ENOSYS) in for_each_elem()
66 Err(SystemError::ENOSYS) in lookup_and_delete_elem()
71 Err(SystemError::ENOSYS) in lookup_percpu_elem()
77 Err(SystemError::ENOSYS) in get_next_key()
82 Err(SystemError::ENOSYS) in push_elem()
87 Err(SystemError::ENOSYS) in pop_elem()
92 Err(SystemError::ENOSYS) in peek_elem()
[all …]
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs178 return Err(SystemError::EINVAL); in truncate()
208 return Err(SystemError::EINVAL); in read_at()
215 return Err(SystemError::EISDIR); in read_at()
223 return Err(SystemError::ENOBUFS); in read_at()
240 return Err(SystemError::EINVAL); in write_at()
248 return Err(SystemError::EISDIR); in write_at()
297 return Err(SystemError::EINVAL); in resize()
313 return Err(SystemError::ENOTDIR); in create_with_data()
317 return Err(SystemError::EEXIST); in create_with_data()
366 return Err(SystemError::ENOTDIR); in link()
[all …]
/DragonOS/kernel/src/driver/disk/ahci/
H A Dahci_inode.rs85 Err(SystemError::ENOSYS) in open()
89 Err(SystemError::ENOSYS) in close()
101 Err(SystemError::ENOSYS) in list()
125 return Err(SystemError::EINVAL); in read_at()
132 return Err(SystemError::EINVAL); in read_at()
144 return Err(SystemError::EINVAL); in write_at()
151 return Err(SystemError::EINVAL); in write_at()
/DragonOS/user/apps/test_namespace/src/
H A Dmain.rs20 Err(e) => println!("Error waiting for child process: {:?}", e), in main()
26 if let Err(e) = sched::unshare(clone_flags) { in main()
32 Err(err) => { in main()
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs182 return Err(SystemError::ENOSYS); in set_metadata()
197 return Err(SystemError::ENOSYS); in create_with_data()
202 return Err(SystemError::ENOSYS); in link()
207 return Err(SystemError::ENOSYS); in unlink()
212 return Err(SystemError::ENOSYS); in rmdir()
222 return Err(SystemError::ENOSYS); in move_to()
227 return Err(SystemError::ENAMETOOLONG); in find()
230 return Err(SystemError::ENOTDIR); in find()
259 return Err(SystemError::ENOTDIR); in get_entry_name()
285 return Err(SystemError::ENOSYS); in ioctl()
[all …]
/DragonOS/kernel/src/filesystem/sysfs/
H A Dgroup.rs40 if let Err(e) = self.do_create_group(kobj, group, update) { in do_create_groups()
48 return Err(e); in do_create_groups()
64 return Err(SystemError::EINVAL); 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()
205 if let Err(e) = e { in group_create_files()
211 return Err(e); in group_create_files()
/DragonOS/user/apps/test_socket/src/
H A Dmain.rs8 if let Err(e) = test_unix_stream() { in main()
14 if let Err(e) = test_unix_stream_pair() { in main()

12345678910