Home
last modified time | relevance | path

Searched refs:EINVAL (Results 1 – 25 of 47) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/libs/libUI/
Dscreen_manager.c67 return -EINVAL; in __destroy_buffer()
69 return -EINVAL; in __destroy_buffer()
71 return -EINVAL; in __destroy_buffer()
74 return -EINVAL; in __destroy_buffer()
107 return -EINVAL; in __check_ui_param()
109 return -EINVAL; in __check_ui_param()
111 return -EINVAL; in __check_ui_param()
114 return -EINVAL; in __check_ui_param()
134 return -EINVAL; in scm_register_alloc()
174 return -EINVAL; in scm_register()
[all …]
Dtextui-render.c79 return -EINVAL; in textui_refresh_characters()
/DragonOS-0.1.8/kernel/src/mm/
Dsyscall.rs136 return Err(SystemError::EINVAL); in mmap()
175 return Err(SystemError::EINVAL); in munmap()
178 return Err(SystemError::EINVAL); in munmap()
188 .map_err(|_| SystemError::EINVAL)?; in munmap()
208 return Err(SystemError::EINVAL); in mprotect()
211 return Err(SystemError::EINVAL); in mprotect()
214 let prot_flags = ProtFlags::from_bits(prot_flags as u64).ok_or(SystemError::EINVAL)?; in mprotect()
223 .map_err(|_| SystemError::EINVAL)?; in mprotect()
Dmmio_buddy.rs38 EINVAL, enumerator
118 return Err(SystemError::EINVAL); in give_back_block()
407 return Err(MmioResult::EINVAL); in merge_all_exp()
457 return Err(MmioResult::EINVAL); in merge_blocks()
537 return Err(SystemError::EINVAL); in release_mmio()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
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()
305 return Err(SystemError::EINVAL); in new()
319 return Err(SystemError::EINVAL); in validate()
322 return Err(SystemError::EINVAL); in validate()
325 return Err(SystemError::EINVAL); in validate()
330 return Err(SystemError::EINVAL); in validate()
[all …]
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs123 return Err(SystemError::EINVAL); in read_at()
130 return Err(SystemError::EINVAL); in read_at()
142 return Err(SystemError::EINVAL); in write_at()
149 return Err(SystemError::EINVAL); in write_at()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs49 return Err(SystemError::EINVAL); in socket()
372 return Err(SystemError::EINVAL); in getsockname()
378 let endpoint: Endpoint = socket.endpoint().ok_or(SystemError::EINVAL)?; in getsockname()
401 return Err(SystemError::EINVAL); in getpeername()
408 let endpoint: Endpoint = socket.peer_endpoint().ok_or(SystemError::EINVAL)?; in getpeername()
490 return Err(SystemError::EINVAL); in to_endpoint()
506 return Err(SystemError::EINVAL); in to_endpoint()
510 return Err(SystemError::EINVAL); in to_endpoint()
513 return Err(SystemError::EINVAL); in to_endpoint()
516 return Err(SystemError::EINVAL); in to_endpoint()
[all …]
Dsocket.rs382 return Err(SystemError::EINVAL); in write()
471 Err(_) => return Err(SystemError::EINVAL), in do_bind()
474 return Err(SystemError::EINVAL); in do_bind()
584 return Err(SystemError::EINVAL); in connect()
703 Err(_) => Err(SystemError::EINVAL), in do_listen()
856 return Err(SystemError::EINVAL); in connect()
868 let local_endpoint = self.local_endpoint.ok_or(SystemError::EINVAL)?; in listen()
893 return Err(SystemError::EINVAL); in bind()
904 let endpoint = self.local_endpoint.ok_or(SystemError::EINVAL)?; in accept()
1097 return <Self as FromPrimitive>::from_u16(x).ok_or_else(|| SystemError::EINVAL); in try_from()
[all …]
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs78 EINVAL = 22, enumerator
417 Err(SystemError::EINVAL) in handle()
483 _ => Err(SystemError::EINVAL), in handle()
521 return Err(SystemError::EINVAL); in handle()
524 let dest_path: &str = dest_path.to_str().map_err(|_| SystemError::EINVAL)?; in handle()
526 return Err(SystemError::EINVAL); in handle()
616 return Err(SystemError::EINVAL); in handle()
619 let path: &str = path.to_str().map_err(|_| SystemError::EINVAL)?.trim(); in handle()
622 return Err(SystemError::EINVAL); in handle()
681 let pathname: &str = pathname.to_str().map_err(|_| SystemError::EINVAL)?; in handle()
[all …]
Dsyscall.c102 return -EINVAL; in c_sys_wait4()
/DragonOS-0.1.8/kernel/src/libs/
Dbitree.c23 return (void*)-EINVAL; in bt_create_tree()
68 return -EINVAL; in bt_insert()
116 return -EINVAL; in bt_query()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dzero_dev.rs117 return Err(SystemError::EINVAL); in read_at()
136 return Err(SystemError::EINVAL); in write_at()
Dnull_dev.rs128 return Err(SystemError::EINVAL); in write_at()
/DragonOS-0.1.8/docs/community/code_contribution/
Drust-coding-style.md49 return Err(SystemError::EINVAL);
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.c300 *type = -EINVAL; in pci_read_header()
313 if (header_type == -EINVAL) in pci_checkFunction()
333 if (header_type == -EINVAL) in pci_checkDevice()
336 return -EINVAL; in pci_checkDevice()
393 if (header_type == EINVAL) in pci_checkAllBuses()
Dpci_irq.c39 return EINVAL; in c_irq_install()
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs49 return Err(SystemError::EINVAL); in kill()
155 return Err(SystemError::EINVAL); in sigaction()
Dpipe.rs83 return Err(SystemError::EINVAL); in read_at()
162 return Err(SystemError::EINVAL); in write_at()
/DragonOS-0.1.8/kernel/src/time/
Dsleep.rs26 return Err(SystemError::EINVAL); in nanosleep()
/DragonOS-0.1.8/kernel/src/common/
Derrno.h34 #define EINVAL 22 /* 不可用的参数 Invalid argument. */ macro
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Derrno.h40 #define EINVAL 22 /* 不可用的参数 Invalid argument. */ macro
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs80 return Err(SystemError::EINVAL); in check_rw_param()
134 return Err(SystemError::EINVAL); in open()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs125 return Err(SystemError::EINVAL); in read_at()
157 return Err(SystemError::EINVAL); in write_at()
226 return Err(SystemError::EINVAL); in resize()
/DragonOS-0.1.8/kernel/src/exception/
Dirq.c200 return -EINVAL; in irq_register()
/DragonOS-0.1.8/kernel/src/ktest/
Dtest-bitree.c45 assert((int64_t)rn != (-EINVAL)); in ktest_bitree_case1()

12