Home
last modified time | relevance | path

Searched refs:EFAULT (Results 1 – 20 of 20) sorted by relevance

/DragonOS/kernel/src/syscall/
H A Duser_access.rs30 verify_area(dest, len).map_err(|_| SystemError::EFAULT)?; in clear_user()
39 verify_area(dest, src.len()).map_err(|_| SystemError::EFAULT)?; in copy_to_user()
49 verify_area(src, dst.len()).map_err(|_| SystemError::EFAULT)?; in copy_from_user()
80 return Err(SystemError::EFAULT); in check_and_clone_cstr()
173 return Err(SystemError::EFAULT); in new()
281 return Err(SystemError::EFAULT); in new()
H A Dmod.rs241 Err(SystemError::EFAULT) in handle()
265 Err(SystemError::EFAULT) in handle()
307 Err(SystemError::EFAULT) in handle()
318 Err(SystemError::EFAULT) in handle()
328 Err(SystemError::EFAULT) in handle()
417 Err(SystemError::EFAULT) in handle()
432 return Err(SystemError::EFAULT); in handle()
438 return Err(SystemError::EFAULT); in handle()
457 Err(SystemError::EFAULT) in handle()
469 Err(SystemError::EFAULT) in handle()
[all …]
/DragonOS/kernel/src/time/
H A Dsyscall.rs82 return Err(SystemError::EFAULT); in nanosleep()
113 return Err(SystemError::EFAULT); in gettimeofday()
145 return Err(SystemError::EFAULT); in clock_gettime()
/DragonOS/kernel/src/common/
H A Derrno.h26 #define EFAULT 14 /* 错误的地址 Bad address */ macro
/DragonOS/kernel/src/filesystem/sysfs/
H A Dsymlink.rs59 let parent = parent.ok_or(SystemError::EFAULT)?; in do_create_link()
/DragonOS/kernel/crates/system_error/src/
H A Dlib.rs40 EFAULT = 14, enumerator
/DragonOS/kernel/src/net/event_poll/
H A Dsyscall.rs72 return Err(SystemError::EFAULT); in epoll_ctl()
/DragonOS/kernel/src/net/
H A Dsyscall.rs567 .map_err(|_| SystemError::EFAULT)?; in to_endpoint()
569 let addr = unsafe { addr.as_ref() }.ok_or(SystemError::EFAULT)?; in to_endpoint()
657 .map_err(|_| SystemError::EFAULT)?; in write_to_user()
663 .map_err(|_| SystemError::EFAULT)?; in write_to_user()
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs144 return Err(SystemError::EFAULT); in sigaction()
216 return Err(SystemError::EFAULT); in sigaction()
/DragonOS/kernel/src/process/
H A Dexec.rs83 ExecError::BadAddress(_addr) => SystemError::EFAULT, in from()
H A Dsyscall.rs277 .map_err(|_| SystemError::EFAULT)?; in set_tid_address()
H A Dmod.rs1379 return Err(SystemError::EFAULT); in from_existed()
/DragonOS/kernel/src/libs/
H A Delf.rs347 copy_to_user(vaddr, &buf[..read_size]).map_err(|_| SystemError::EFAULT)?; in do_load_file()
361 unsafe { clear_user(elf_bss, nbyte).map_err(|_| SystemError::EFAULT) }?; in pad_zero()
709 SystemError::EFAULT => ExecError::BadAddress(None), in load()
/DragonOS/kernel/src/filesystem/
H A Deventfd.rs225 .map_err(|_| SystemError::EFAULT)?; in kernel_ioctl()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs319 .map_err(|_| SystemError::EFAULT)?; in kernel_ioctl()
374 return Err(SystemError::EFAULT); in ioctl()
/DragonOS/kernel/src/filesystem/vfs/
H A Dsyscall.rs688 return Err(SystemError::EFAULT); in chdir()
771 unsafe { (buf.as_mut_ptr() as *mut Dirent).as_mut() }.ok_or(SystemError::EFAULT)?; in getdents()
1382 return Err(SystemError::EFAULT); in do_statx()
1753 .map_err(|_| SystemError::EFAULT)?; in from_user()
1769 .map_err(|_| SystemError::EFAULT)?; in from_user()
/DragonOS/kernel/src/arch/x86_64/ipc/
H A Dsignal.rs632 return Err(SystemError::EFAULT); in setup_frame()
/DragonOS/kernel/src/mm/
H A Dmod.rs859 return Err(SystemError::EFAULT); in verify_area()
H A Ducontext.rs753 return Err(SystemError::EFAULT); in set_brk()
1667 return Err(SystemError::EFAULT); in page_address()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs673 return Err(SystemError::EFAULT); in deallocate_cluster()