Home
last modified time | relevance | path

Searched refs:LOS_ArchCopyToUser (Results 1 – 16 of 16) sorted by relevance

/kernel/liteos_a/syscall/
Dtime_syscall.c100 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 …]
Dmisc_syscall.c100 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()
Dipc_syscall.c124 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()
Dprocess_syscall.c265 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 …]
Dsyscall_pub.h94 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 || \
222LOS_ArchCopyToUser(&ptr##bak->field, &ptr##cpybak.field, sizeof(__typeof(ptr##cpybak.field))) != 0…
Dfs_syscall.c718 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/
Duser_copy.c56 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/
Duser_copy.h61 size_t LOS_ArchCopyToUser(void *dst, const void *src, size_t len);
/kernel/liteos_a/security/cap/
Dcapability.c113 if (LOS_ArchCopyToUser(caps, &kCaps, sizeof(UINT32)) != LOS_OK) { in SysCapGet()
/kernel/liteos_a/kernel/base/vm/
Dshm.c665 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/
Dlos_hilog.c140 retval = LOS_ArchCopyToUser(dst, src, minLen); in HiLogBufferCopy()
/kernel/liteos_a/net/lwip-2.1/porting/src/
Dsockets.c1615 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/
Dconsole.c690 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/
Dlos_load_elf.c872 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/
Dprocess_proc.c146 if (LOS_ArchCopyToUser(buffer, buf, bufLen) != 0) { in ProcessContainerReadLink()
/kernel/liteos_a/kernel/base/core/
Dlos_process.c1312 (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()