Searched refs:OS_PCB_FROM_PID (Results 1 – 14 of 14) sorted by relevance
/kernel/liteos_a/kernel/base/include/ |
D | los_process_pri.h | 140 #define OS_PCB_FROM_PID(processID) (((LosProcessCB *)g_processCBArray) + (processID)) macro 352 LosProcessCB *runProcess = OS_PCB_FROM_PID(OsCurrTaskGet()->processID); in OsCurrProcessGet() 374 LosProcessCB *process = OS_PCB_FROM_PID(taskCB->processID); in OsProcessUserIDGet() 385 return OS_PCB_FROM_PID(taskCB->processID)->threadGroupID; in OsProcessThreadGroupIDGet() 390 return OS_PCB_FROM_PID(taskCB->processID)->threadNumber; in OsProcessThreadNumberGet()
|
/kernel/liteos_a/kernel/extended/cpup/ |
D | los_cpup.c | 111 processCB = OS_PCB_FROM_PID(loop); in OsCpupGuard() 137 processCB = OS_PCB_FROM_PID(taskCB->processID); in OsCpupGuard() 217 processCB = OS_PCB_FROM_PID(index); in LOS_CpupReset() 255 OsCpupBase *processCpup = OS_PCB_FROM_PID(runTask->processID)->processCpup; in OsCpupCycleEndStart() 341 processCpup = OS_PCB_FROM_PID(idleProcessID)->processCpup; in OsHistorySysCpuUsageUnsafe() 371 processCB = OS_PCB_FROM_PID(pid); in OsHistoryProcessCpuUsageUnsafe() 464 processCB = OS_PCB_FROM_PID(processID); in OsGetAllProcessCpuUsageUnsafe() 515 processCpupBase = OS_PCB_FROM_PID(taskCB->processID)->processCpup; in OsGetAllProcessAndTaskCpuUsageUnsafe()
|
D | cpup_shellcmd.c | 123 if (OsProcessIsDead(OS_PCB_FROM_PID(pid))) { in OsShellCmdCpup()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_process.c | 83 LosProcessCB *processCB = OS_PCB_FROM_PID(taskCB->processID); in OsDeleteTaskFromProcess() 94 LosProcessCB *processCB = OS_PCB_FROM_PID(pid); in OsProcessAddNewTask() 139 processCB = OS_PCB_FROM_PID(pid); in OsCreateProcessGroup() 152 LosProcessCB *groupProcessCB = OS_PCB_FROM_PID(processCB->group->groupID); in OsExitProcessGroup() 484 parentCB = OS_PCB_FROM_PID(parentID); in OsDealAliveChildProcess() 511 parentCB = OS_PCB_FROM_PID(processCB->parentProcessID); in OsProcessNaturalExit() 561 LOS_ListDelete(&OS_PCB_FROM_PID(g_kernelIdleProcess)->pendList); in OsProcessInit() 564 LOS_ListDelete(&OS_PCB_FROM_PID(g_userInitProcess)->pendList); in OsProcessInit() 567 LOS_ListDelete(&OS_PCB_FROM_PID(g_kernelInitProcess)->pendList); in OsProcessInit() 844 LosProcessCB *kerInitProcess = OS_PCB_FROM_PID(g_kernelInitProcess); in OsSystemProcessCreate() [all …]
|
D | los_task.c | 343 LosProcessCB *processCB = OS_PCB_FROM_PID(taskCB->processID); in OsTaskResourcesToFree() 433 LosProcessCB *process = OS_PCB_FROM_PID(initParam->processID); in OsTaskCreateParamCheck() 815 OsProcessResourcesToFree(OS_PCB_FROM_PID(runTask->processID)); in OsRunningTaskToExit() 819 OsProcessNaturalExit(OS_PCB_FROM_PID(runTask->processID), status); in OsRunningTaskToExit() 1256 … err = (INT32)OsSetProcessName(OS_PCB_FROM_PID(taskCB->processID), (const CHAR *)taskCB->taskName); in OsSetTaskName()
|
/kernel/liteos_a/kernel/extended/liteipc/ |
D | hm_liteipc.c | 318 LosProcessCB *pcb = OS_PCB_FROM_PID(processID); in LiteIpcPoolDestroy() 346 ProcIpcInfo *ipcInfo = OS_PCB_FROM_PID(processID)->ipcInfo; in EnableIpcNodeFreeByUser() 358 VOID *ptr = LOS_MemAlloc(OS_PCB_FROM_PID(processID)->ipcInfo->pool.kvaddr, size); in LiteIpcNodeAlloc() 360 processID, OS_PCB_FROM_PID(processID)->ipcInfo->pool.kvaddr, ptr, size); in LiteIpcNodeAlloc() 367 processID, OS_PCB_FROM_PID(processID)->ipcInfo->pool.kvaddr, buf); in LiteIpcNodeFree() 368 return LOS_MemFree(OS_PCB_FROM_PID(processID)->ipcInfo->pool.kvaddr, buf); in LiteIpcNodeFree() 375 ProcIpcInfo *ipcInfo = OS_PCB_FROM_PID(processID)->ipcInfo; in IsIpcNode() 391 IpcPool pool = OS_PCB_FROM_PID(processID)->ipcInfo->pool; in GetIpcUserAddr() 398 IpcPool pool = OS_PCB_FROM_PID(processID)->ipcInfo->pool; in GetIpcKernelAddr() 489 LosProcessCB *pcb = OS_PCB_FROM_PID(processID); in AddServiceAccess() [all …]
|
/kernel/liteos_a/kernel/base/misc/ |
D | vm_shellcmd.c | 100 processCB = OS_PCB_FROM_PID(pid); in OsDoDumpVm() 160 LosProcessCB *processCB = OS_PCB_FROM_PID(pid); in OsShellCmdV2P()
|
/kernel/liteos_a/syscall/ |
D | process_syscall.c | 273 processCB = OS_PCB_FROM_PID(pid); in SysSchedRRGetInterval() 911 LosProcessCB *processCB = OS_PCB_FROM_PID(taskCB->processID); in SysSetThreadArea() 1034 … *taskID = (id == 0) ? (OsCurrTaskGet()->taskID) : (OS_PCB_FROM_PID((UINT32)id)->threadGroupID); in SchedAffinityParameterPreprocess() 1062 if (OsProcessIsInactive(OS_PCB_FROM_PID(processID))) { in SysSchedGetAffinity() 1117 if (OsProcessIsInactive(OS_PCB_FROM_PID(processID))) { in SysSchedSetAffinity()
|
/kernel/liteos_a/security/cap/ |
D | capability.c | 101 processCB = OS_PCB_FROM_PID(pid); in SysCapGet()
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_procfd.c | 327 LosProcessCB *processCB = OS_PCB_FROM_PID(targetPid); in FdClose() 353 LosProcessCB *processCB = OS_PCB_FROM_PID(pid); in GetProcessFTable()
|
/kernel/liteos_a/compat/posix/src/ |
D | time.c | 512 spcb = OS_PCB_FROM_PID(pid); in ProcessGetCputime() 558 spcb = OS_PCB_FROM_PID(pid); in CheckClock() 1091 LosProcessCB *processCB = OS_PCB_FROM_PID(taskCB->processID); in setitimer() 1145 LosProcessCB *processCB = OS_PCB_FROM_PID(taskCB->processID); in getitimer()
|
/kernel/liteos_a/kernel/base/ipc/ |
D | los_signal.c | 138 if (!OsTaskIsPending(taskCB) || !OsProcessIsUserMode(OS_PCB_FROM_PID(taskCB->processID))) { in OsPendingTaskWake() 401 LosProcessCB *spcb = OS_PCB_FROM_PID(pid); in OsDispatch()
|
/kernel/liteos_a/kernel/base/sched/ |
D | los_priority.c | 343 LosProcessCB *processCB = OS_PCB_FROM_PID(taskCB->processID); in BasePriorityModify()
|
/kernel/liteos_a/kernel/base/vm/ |
D | shm.c | 662 … (VOID)memcpy_s(seg->ownerName, OS_PCB_NAME_LEN, OS_PCB_FROM_PID(shm_perm.uid)->processName, in ShmCtl()
|