Home
last modified time | relevance | path

Searched refs:OsCurrProcessGet (Results 1 – 25 of 40) sorted by relevance

12

/kernel/liteos_a/security/cap/
Dcapability.c45 UINT32 capability = OsCurrProcessGet()->capability; in IsCapPermit()
78 if (VALID_CAPS(caps, OsCurrProcessGet()->capability)) { in SysCapSet()
83 OsCurrProcessGet()->capability = caps; in SysCapSet()
99 processCB = OsCurrProcessGet(); in SysCapGet()
/kernel/liteos_a/security/vid/
Dvid.c76 LosProcessCB *processCB = OsCurrProcessGet(); in FindListNodeByVid()
93 LosProcessCB *processCB = OsCurrProcessGet(); in FindListNodeByRid()
112 LosProcessCB *processCB = OsCurrProcessGet(); in GetFreeVid()
152 LosProcessCB *processCB = OsCurrProcessGet(); in ReleaseVid()
181 LosProcessCB *processCB = OsCurrProcessGet(); in AddNodeByRid()
224 LosProcessCB *processCB = OsCurrProcessGet(); in RemoveNodeByVid()
/kernel/liteos_a/kernel/extended/container/
Dlos_credentials.c188 Credentials *oldCredentials = OsCurrProcessGet()->credentials; in CommitCredentials()
194 OsCurrProcessGet()->credentials = newCredentials; in CommitCredentials()
201 return OsCurrProcessGet()->credentials; in CurrentCredentials()
206 UserContainer *userContainer = OsCurrProcessGet()->credentials->userContainer; in OsCurrentUserContainer()
Dlos_ipc_container.c168 newContainer->ipcContainer = OsCurrProcessGet()->container->ipcContainer; in OsSetNsIpcContainer()
215 return OsCurrProcessGet()->container->ipcContainer; in OsGetCurrIpcContainer()
Dlos_mnt_container.c44 return &OsCurrProcessGet()->container->mntContainer->mountList; in GetContainerMntList()
183 newContainer->mntContainer = OsCurrProcessGet()->container->mntContainer; in OsSetNsMntContainer()
Dlos_uts_container.c183 newContainer->utsContainer = OsCurrProcessGet()->container->utsContainer; in OsSetNsUtsContainer()
216 Container *container = OsCurrProcessGet()->container; in OsGetCurrUtsName()
Dlos_time_container.c149 LosProcessCB *curr = OsCurrProcessGet(); in OsSetNsTimeContainer()
216 return OsCurrProcessGet()->container->timeContainer; in OsGetCurrTimeContainer()
Dlos_net_container.c272 newContainer->netContainer = OsCurrProcessGet()->container->netContainer; in OsSetNsNetContainer()
288 LosProcessCB *processCB = OsCurrProcessGet(); in DoGetNetGroupFromCurrProcess()
Dlos_container.c560 LosProcessCB *curr = OsCurrProcessGet(); in OsUnshare()
694 if (processCB == OsCurrProcessGet()) { in SetNsParamCheck()
705 LosProcessCB *curr = OsCurrProcessGet(); in OsSetNs()
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_syscall.c55 if (len > OsCurrProcessGet()->vmSpace->mapSize) { in OsCheckMMapParams()
112 LosVmSpace *vmSpace = OsCurrProcessGet()->vmSpace; in LOS_MMap()
173 return OsUnMMap(OsCurrProcessGet()->vmSpace, addr, size); in LOS_UnMMap()
205 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoBrk()
283 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoMprotect()
356 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in OsMremapCheck()
411 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoMremap()
504 space = OsCurrProcessGet()->vmSpace; in LOS_DumpMemRegion()
/kernel/liteos_a/kernel/extended/liteipc/
Dhm_liteipc.c129 LosProcessCB *pcb = OsCurrProcessGet(); in LiteIpcOpen()
203 LosProcessCB *pcb = OsCurrProcessGet(); in LiteIpcMmap()
405 LosProcessCB *pcb = OsCurrProcessGet(); in CheckUsedBuffer()
500 LosProcessCB *curr = OsCurrProcessGet(); in HasServiceAccess()
527 if (OsCurrProcessGet()->ipcInfo->ipcTaskID == INVAILD_ID) { in SetIpcTask()
528 OsCurrProcessGet()->ipcInfo->ipcTaskID = LOS_CurTaskIDGet(); in SetIpcTask()
529 return OsCurrProcessGet()->ipcInfo->ipcTaskID; in SetIpcTask()
531 PRINT_ERR("Liteipc curprocess %d IpcTask already set!\n", OsCurrProcessGet()->processID); in SetIpcTask()
537 if (OsCurrProcessGet()->ipcInfo->ipcTaskID == INVAILD_ID) { in IsIpcTaskSet()
940 node->msg.processID = OsCurrProcessGet()->processID; in CopyDataFromUser()
[all …]
/kernel/liteos_a/kernel/extended/plimit/
Dlos_ipclimit.c193 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitMqAlloc()
211 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitMqFree()
223 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitShmAlloc()
241 LosProcessCB *run = OsCurrProcessGet(); in OsIPCLimitShmFree()
Dlos_memlimit.c181 LosProcessCB *run = OsCurrProcessGet(); in OsMemLimitCheckAndMemAdd()
210 LosProcessCB *run = OsCurrProcessGet(); in OsMemLimitMemFree()
Dlos_processlimit.c176 LosProcessCB *run = OsCurrProcessGet(); in OsPidLimitGetPriorityLimit()
Dlos_plimits.c359 (VOID)PLimitsDeleteProcess(OsCurrProcessGet()); in OsPLimitsCreate()
360 (VOID)PLimitsAddProcess(newPLimits, OsCurrProcessGet()); in OsPLimitsCreate()
/kernel/liteos_a/fs/vfs/operation/
Dvfs_other.c137 LosProcessCB *curr = OsCurrProcessGet(); in SetWorkDir()
228 LosProcessCB *curr = OsCurrProcessGet(); in getcwd()
637 LosProcessCB *curr = OsCurrProcessGet(); in ls()
745 return OsCurrProcessGet()->umask; in GetUmask()
755 oldUmask = OsCurrProcessGet()->umask; in SysUmask()
756 OsCurrProcessGet()->umask = umask; in SysUmask()
788 LosProcessCB *curr = OsCurrProcessGet(); in chroot()
/kernel/liteos_a/kernel/base/core/
Dlos_process.c187 ProcessGroup *rootPGroup = OS_ROOT_PGRP(OsCurrProcessGet()); in OsFindProcessGroup()
228 ProcessGroup *rootPGroup = OS_ROOT_PGRP(OsCurrProcessGet()); in OsSendSignalToAllProcess()
988 LosProcessCB *runProcess = OsCurrProcessGet(); in OsProcessCapPermitCheck()
1384 LosProcessCB *processCB = OsCurrProcessGet(); in OsWait()
1506 LosProcessCB *runProcessCB = OsCurrProcessGet(); in OsSetProcessGroupCheck()
1547 ProcessGroup *rootPGroup = OS_ROOT_PGRP(OsCurrProcessGet()); in OsSetProcessGroupIDUnsafe()
1602 return OsSetProcessGroupID(OsCurrProcessGet()->processID, gid); in OsSetCurrProcessGroupID()
1631 return LOS_GetProcessGroupID(OsCurrProcessGet()->processID); in LOS_GetCurrProcessGroupID()
1677 LosProcessCB *processCB = OsCurrProcessGet(); in OsExecProcessVmSpaceRestore()
1687 LosProcessCB *processCB = OsCurrProcessGet(); in OsExecProcessVmSpaceReplace()
[all …]
/kernel/liteos_a/shell/full/src/base/
Dshell_lk.c194 ((OsCurrProcessGet() == NULL) ? "NULL" : OsCurrProcessGet()->processName), in OsLkDefaultFunc()
/kernel/liteos_a/syscall/
Dprocess_syscall.c371 processCB = OsCurrProcessGet(); in SysSchedRRGetInterval()
488 if (OsCurrProcessGet()->processID == OS_USER_ROOT_PROCESS_ID) { in SysGetPPID()
492 return OsCurrProcessGet()->parentProcess->processID; in SysGetPPID()
636 Credentials *newCredentials = PrepareCredential(OsCurrProcessGet()); in SysSetUserID()
795 Credentials *newCredentials = PrepareCredential(OsCurrProcessGet()); in SysSetGroupID()
1018 OsCurrProcessGet()->user = newUser; in SetGroups()
1052 (void)memcpy_s(safeList, listSize, &OsCurrProcessGet()->user->groups[0], listSize); in GetGroups()
/kernel/liteos_a/arch/arm/arm/src/
Dlos_exc.c320 LosProcessCB *runProcess = OsCurrProcessGet(); in OsExcSysInfo()
491 runProcess = OsCurrProcessGet(); in OsDumpProcessUsedMemNode()
560 LosProcessCB *runProcess = OsCurrProcessGet(); in OsUserExcHandle()
630 LosProcessCB *runProcess = OsCurrProcessGet(); in IsValidFP()
716 LosProcessCB *runProcess = OsCurrProcessGet(); in OsGetUsrIpInfo()
1021 g_currHandleExcPID = OsCurrProcessGet()->processID; in OsWaitOtherCoresHandleExcEnd()
1046 g_currHandleExcPID = OsCurrProcessGet()->processID; in OsCheckAllCpuStatus()
1058 if (OsCurrProcessGet()->processID == g_currHandleExcPID) { in OsCheckAllCpuStatus()
/kernel/liteos_a/kernel/base/include/
Dlos_process_pri.h390 STATIC INLINE LosProcessCB *OsCurrProcessGet(VOID) in OsCurrProcessGet() function
407 user = OsCurrProcessGet()->user; in OsCurrUserGet()
453 if (OS_PROCESS_CONTAINER_CHECK(processCB, OsCurrProcessGet())) { in OsGetPid()
/kernel/liteos_a/compat/posix/src/
Dmisc.c165 LosProcessCB *pcb = OsCurrProcessGet(); in getrlimit()
199 LosProcessCB *pcb = OsCurrProcessGet(); in setrlimit()
/kernel/liteos_a/kernel/common/
Dlos_printf.c285 ((OsCurrProcessGet() == NULL) ? "NULL" : OsCurrProcessGet()->processName), in LOS_LkPrint()
/kernel/liteos_a/kernel/extended/dynload/src/
Dlos_exec_elf.c158 …ret = OsExecRecycleAndInit(OsCurrProcessGet(), loadInfo.fileName, loadInfo.oldSpace, loadInfo.oldF… in LOS_DoExecveFile()
/kernel/liteos_a/kernel/base/ipc/
Dlos_signal.c405 LosProcessCB *current = OsCurrProcessGet(); in SendSigPermissionCheck()
726 LosProcessCB *process = OsCurrProcessGet(); in OsSaveSignalContext()
784 LosProcessCB *process = OsCurrProcessGet(); in OsRestorSignalContext()

12