/DragonOS/kernel/src/syscall/ |
H A D | user_access.rs | 30 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 D | mod.rs | 241 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 D | syscall.rs | 82 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 D | errno.h | 26 #define EFAULT 14 /* 错误的地址 Bad address */ macro
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | symlink.rs | 59 let parent = parent.ok_or(SystemError::EFAULT)?; in do_create_link()
|
/DragonOS/kernel/crates/system_error/src/ |
H A D | lib.rs | 40 EFAULT = 14, enumerator
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | syscall.rs | 72 return Err(SystemError::EFAULT); in epoll_ctl()
|
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 567 .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 D | syscall.rs | 144 return Err(SystemError::EFAULT); in sigaction() 216 return Err(SystemError::EFAULT); in sigaction()
|
/DragonOS/kernel/src/process/ |
H A D | exec.rs | 83 ExecError::BadAddress(_addr) => SystemError::EFAULT, in from()
|
H A D | syscall.rs | 277 .map_err(|_| SystemError::EFAULT)?; in set_tid_address()
|
H A D | mod.rs | 1379 return Err(SystemError::EFAULT); in from_existed()
|
/DragonOS/kernel/src/libs/ |
H A D | elf.rs | 347 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 D | eventfd.rs | 225 .map_err(|_| SystemError::EFAULT)?; in kernel_ioctl()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 319 .map_err(|_| SystemError::EFAULT)?; in kernel_ioctl() 374 return Err(SystemError::EFAULT); in ioctl()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 688 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 D | signal.rs | 632 return Err(SystemError::EFAULT); in setup_frame()
|
/DragonOS/kernel/src/mm/ |
H A D | mod.rs | 859 return Err(SystemError::EFAULT); in verify_area()
|
H A D | ucontext.rs | 753 return Err(SystemError::EFAULT); in set_brk() 1667 return Err(SystemError::EFAULT); in page_address()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 673 return Err(SystemError::EFAULT); in deallocate_cluster()
|