| /kernel/liteos_a/syscall/ |
| D | time_syscall.c | 100 if (tloc && LOS_ArchCopyToUser(tloc, &stloc, sizeof(time_t))) { in SysTime() 129 if (ovalue && LOS_ArchCopyToUser(ovalue, &sovalue, sizeof(struct itimerval))) { in SysSetiTimer() 152 if (LOS_ArchCopyToUser(value, &svalue, sizeof(struct itimerval))) { in SysGetiTimer() 181 if (LOS_ArchCopyToUser(timerID, &stimerID, sizeof(timer_t))) { in SysTimerCreate() 204 if (LOS_ArchCopyToUser(value, &svalue, sizeof(struct itimerspec))) { in SysTimerGettime() 233 if (oldValue && LOS_ArchCopyToUser(oldValue, &soldValue, sizeof(struct itimerspec))) { in SysTimerSettime() 300 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec))) { in SysClockGettime() 323 if (LOS_ArchCopyToUser(tp, &stp, sizeof(struct timespec))) { in SysClockGetres() 347 if (rem && LOS_ArchCopyToUser(rem, &srem, sizeof(struct timespec))) { in SysClockNanoSleep() 376 if (rmtp && LOS_ArchCopyToUser(rmtp, &srmtp, sizeof(struct timespec))) { in SysNanoSleep() [all …]
|
| D | misc_syscall.c | 100 ret = LOS_ArchCopyToUser(name, &tmpName, sizeof(struct utsname)); in SysUname() 119 ret = LOS_ArchCopyToUser(info, &tmpInfo, sizeof(struct sysinfo)); in SysInfo() 227 ret = LOS_ArchCopyToUser(ru, &kru, sizeof(struct rusage)); in SysGetrusage() 256 ret = LOS_ArchCopyToUser(k_rlim, &lim, sizeof(struct rlimit)); in SysUgetrlimit()
|
| D | ipc_syscall.c | 124 ret = LOS_ArchCopyToUser(old, &kold, sizeof(struct mq_attr)); in SysMqGetSetAttr() 213 ret = LOS_ArchCopyToUser(msgPrio, &kMsgPrio, sizeof(unsigned int)); in SysMqTimedReceive() 220 ret = LOS_ArchCopyToUser(msg, msgIntr, receiveLen); in SysMqTimedReceive() 285 retVal = LOS_ArchCopyToUser(info, &infoIntr, sizeof(siginfo_t)); in SysSigTimedWait() 311 ret = LOS_ArchCopyToUser(&(setl->sig[0]), &set, sizeof(sigset_t)); in SysSigPending()
|
| D | process_syscall.c | 265 if (LOS_ArchCopyToUser(userParam, &schedParam, sizeof(LosSchedParam))) { in SysSchedGetParam() 397 ret = LOS_ArchCopyToUser(tp, &tv, sizeof(struct timespec)); in SysSchedRRGetInterval() 601 ret = LOS_ArchCopyToUser(ruid, &realUserID, sizeof(int)); in SysGetRealEffSaveUserID() 606 ret = LOS_ArchCopyToUser(euid, &effUserID, sizeof(int)); in SysGetRealEffSaveUserID() 611 ret = LOS_ArchCopyToUser(suid, &saveUserID, sizeof(int)); in SysGetRealEffSaveUserID() 906 ret = LOS_ArchCopyToUser(rgid, &realGroupID, sizeof(int)); in SysGetRealEffSaveGroupID() 911 ret = LOS_ArchCopyToUser(egid, &effGroupID, sizeof(int)); in SysGetRealEffSaveGroupID() 916 ret = LOS_ArchCopyToUser(sgid, &saveGroupID, sizeof(int)); in SysGetRealEffSaveGroupID() 1055 ret = LOS_ArchCopyToUser(list, safeList, listSize); in GetGroups() 1082 ret = LOS_ArchCopyToUser(list, &group, sizeof(int)); in SysGetGroups() [all …]
|
| D | syscall_pub.h | 94 if (LOS_ArchCopyToUser(ptr##bak, ptr, size) != 0) { \ 122 if (LOS_ArchCopyToUser(ptr##bak, ptr, sizeof(*ptr)) != 0) { \ 221 if (LOS_ArchCopyToUser(ptr##cpybak.field, ptr->field, size) != 0 || \ 222 …LOS_ArchCopyToUser(&ptr##bak->field, &ptr##cpybak.field, sizeof(__typeof(ptr##cpybak.field))) != 0…
|
| D | fs_syscall.c | 718 retVal = LOS_ArchCopyToUser(result, &res, sizeof(off64_t)); in SysLseek64() 1058 ret = LOS_ArchCopyToUser(pipefd, pipeFdIntr, sizeof(pipeFdIntr)); in SysPipe() 1179 if (LOS_ArchCopyToUser(readfds, readfdsRet, sizeof(fd_set)) != 0) { in SysSelect() 1185 if (LOS_ArchCopyToUser(writefds, writefdsRet, sizeof(fd_set)) != 0) { in SysSelect() 1191 if (LOS_ArchCopyToUser(exceptfds, exceptfdsRet, sizeof(fd_set)) != 0) { in SysSelect() 1303 ret = LOS_ArchCopyToUser(buf, &bufRet, sizeof(struct statfs)); in SysStatfs() 1339 ret = LOS_ArchCopyToUser(buf, &bufRet, sizeof(struct statfs)); in SysStatfs64() 1370 ret = LOS_ArchCopyToUser(buf, &bufRet, sizeof(struct kstat)); in SysStat() 1401 ret = LOS_ArchCopyToUser(buffer, &bufRet, sizeof(struct kstat)); in SysLstat() 1436 ret = LOS_ArchCopyToUser(buf, &bufRet, sizeof(struct kstat)); in SysFstat() [all …]
|
| /kernel/liteos_a/arch/arm/arm/src/ |
| D | user_copy.c | 56 return LOS_ArchCopyToUser(dst, src, len); in arch_copy_to_user() 59 size_t LOS_ArchCopyToUser(void *dst, const void *src, size_t len) in LOS_ArchCopyToUser() function
|
| /kernel/liteos_a/arch/arm/include/ |
| D | user_copy.h | 61 size_t LOS_ArchCopyToUser(void *dst, const void *src, size_t len);
|
| /kernel/liteos_a/security/cap/ |
| D | capability.c | 113 if (LOS_ArchCopyToUser(caps, &kCaps, sizeof(UINT32)) != LOS_OK) { in SysCapGet()
|
| /kernel/liteos_a/kernel/base/vm/ |
| D | shm.c | 665 ret = LOS_ArchCopyToUser(buf, &seg->ds, sizeof(struct shmid_ds)); in ShmCtl() 709 ret = LOS_ArchCopyToUser(buf, &IPC_SHM_INFO, sizeof(struct shminfo)); in ShmCtl() 723 ret = LOS_ArchCopyToUser(buf, &shmInfo, sizeof(struct shm_info)); in ShmCtl()
|
| /kernel/liteos_a/kernel/extended/hilog/ |
| D | los_hilog.c | 140 retval = LOS_ArchCopyToUser(dst, src, minLen); in HiLogBufferCopy()
|
| /kernel/liteos_a/net/lwip-2.1/porting/src/ |
| D | sockets.c | 1615 if (LOS_ArchCopyToUser(buf_bak, ifc.ifc_buf, nbytes) != 0) { 1623 if (LOS_ArchCopyToUser(argp, &ifc, sizeof(struct ifconf)) != 0) { 1687 if (LOS_ArchCopyToUser(argpbak, argp, nbytes) != 0) {
|
| /kernel/liteos_a/kernel/common/ |
| D | console.c | 690 if (LOS_ArchCopyToUser(buffer, sbuffer, bufLen) != 0) { in ConsoleRead() 846 …return (LOS_ArchCopyToUser((VOID *)arg, &consoleCB->consoleTermios, sizeof(struct termios)) != 0) ? in ConsoleGetTermios() 860 …return (LOS_ArchCopyToUser((VOID *)arg, &consoleCB->pgrpId, sizeof(INT32)) != 0) ? -EFAULT : LOS_O… in ConsoleGetPgrp()
|
| /kernel/liteos_a/kernel/extended/dynload/src/ |
| D | los_load_elf.c | 872 size = LOS_ArchCopyToUser(argsPtr, auxVecInfo, vecIndex * sizeof(UINTPTR)); in OsPutParamToStack() 917 ret = LOS_ArchCopyToUser((VOID *)loadInfo->topOfMem, rndVec, sizeof(rndVec)); in OsMakeArgsStack()
|
| /kernel/liteos_a/fs/proc/os_adapt/ |
| D | process_proc.c | 146 if (LOS_ArchCopyToUser(buffer, buf, bufLen) != 0) { in ProcessContainerReadLink()
|
| /kernel/liteos_a/kernel/base/core/ |
| D | los_process.c | 1312 (VOID)LOS_ArchCopyToUser((VOID *)status, (const VOID *)(&(exitCode)), sizeof(INT32)); in OsWaitRecycleChildProcess() 1339 … (VOID)LOS_ArchCopyToUser((VOID *)(info), (const VOID *)(&(tempinfo)), sizeof(siginfo_t)); in OsWaitRecycleChildProcess() 1398 (VOID)LOS_ArchCopyToUser((VOID *)status, (const VOID *)(&ret), sizeof(INT32)); in OsWait()
|