/kernel/uniproton/src/core/kernel/task/ |
D | prt_task_info.c | 46 OS_SEC_ALW_INLINE INLINE U32 OsTaskInfoGetChk(TskHandle taskPid, struct TskInfo *taskInfo) in OsTaskInfoGetChk() argument 52 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in OsTaskInfoGetChk() 58 …LINE void OsTaskInfoCommonGet(struct TskInfo *taskInfo, struct TagTskCb *taskCb, TskHandle taskPid) in OsTaskInfoCommonGet() argument 68 g_taskNameGet(taskPid, &name); in OsTaskInfoCommonGet() 99 OS_SEC_L4_TEXT U32 OsTaskStackInfoGet(TskHandle taskPid, struct TskStackInfo *stackInfo) in OsTaskStackInfoGet() argument 108 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in OsTaskStackInfoGet() 112 taskCb = GET_TCB_HANDLE(taskPid); in OsTaskStackInfoGet() 131 OS_SEC_ALW_INLINE INLINE U32 OsTaskInfoStackGet(TskHandle taskPid, struct TskInfo *taskInfo) in OsTaskInfoStackGet() argument 136 ret = OsTaskStackInfoGet(taskPid, &stackInfo); in OsTaskInfoStackGet() 151 OS_SEC_L4_TEXT U32 PRT_TaskGetInfo(TskHandle taskPid, struct TskInfo *taskInfo) in PRT_TaskGetInfo() argument [all …]
|
D | prt_task_priority.c | 20 OS_SEC_L4_TEXT U32 PRT_TaskGetPriority(TskHandle taskPid, TskPrior *taskPrio) in PRT_TaskGetPriority() argument 25 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in PRT_TaskGetPriority() 33 taskCb = GET_TCB_HANDLE(taskPid); in PRT_TaskGetPriority() 50 OS_SEC_ALW_INLINE INLINE U32 OsTaskPrioritySetCheck(TskHandle taskPid, TskPrior taskPrio) in OsTaskPrioritySetCheck() argument 56 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in OsTaskPrioritySetCheck() 60 if (taskPid == IDLE_TASK_ID) { in OsTaskPrioritySetCheck() 69 OS_SEC_L4_TEXT U32 PRT_TaskSetPriority(TskHandle taskPid, TskPrior taskPrio) in PRT_TaskSetPriority() argument 76 ret = OsTaskPrioritySetCheck(taskPid, taskPrio); in PRT_TaskSetPriority() 81 taskCb = GET_TCB_HANDLE(taskPid); in PRT_TaskSetPriority()
|
D | prt_amp_task_minor.c | 20 OS_SEC_L2_TEXT U32 PRT_TaskSuspend(TskHandle taskPid) in PRT_TaskSuspend() argument 25 if (taskPid == IDLE_TASK_ID) { in PRT_TaskSuspend() 29 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in PRT_TaskSuspend() 33 taskCb = GET_TCB_HANDLE(taskPid); in PRT_TaskSuspend() 75 OS_SEC_L2_TEXT U32 PRT_TaskResume(TskHandle taskPid) in PRT_TaskResume() argument 80 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in PRT_TaskResume() 84 taskCb = GET_TCB_HANDLE(taskPid); in PRT_TaskResume()
|
D | prt_amp_task_del.c | 43 OS_SEC_L4_TEXT U32 OsTaskDelete(TskHandle taskPid) in OsTaskDelete() argument 49 if (taskPid == IDLE_TASK_ID) { in OsTaskDelete() 53 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in OsTaskDelete() 59 taskCb = GET_TCB_HANDLE(taskPid); in OsTaskDelete() 81 RUNNING_TASK->taskPid = taskPid; in OsTaskDelete()
|
D | prt_taskself_id.c | 20 OS_SEC_L2_TEXT U32 PRT_TaskSelf(TskHandle *taskPid) in PRT_TaskSelf() argument 24 if (taskPid == NULL) { in PRT_TaskSelf() 33 *taskPid = tskCb->taskPid; in PRT_TaskSelf()
|
D | prt_task_attrib.c | 20 OS_SEC_L4_TEXT TskStatus PRT_TaskGetStatus(TskHandle taskPid) in PRT_TaskGetStatus() argument 24 if (CHECK_TSK_PID_OVERFLOW(taskPid)) { in PRT_TaskGetStatus() 28 taskCb = GET_TCB_HANDLE(taskPid); in PRT_TaskGetStatus()
|
D | prt_task_del.c | 42 U32 ret = PRT_TaskDelete(tsk->taskPid); in OsTaskExit() 61 OS_SEC_L4_TEXT U32 PRT_TaskDelete(TskHandle taskPid) in PRT_TaskDelete() argument 63 return OsTaskDelete(taskPid); in PRT_TaskDelete()
|
D | prt_task_init.c | 175 OS_SEC_L4_TEXT U32 OsTaskCreateParaCheck(const TskHandle *taskPid, struct TskInitParam *initParam) in OsTaskCreateParaCheck() argument 179 if ((taskPid == NULL) || (initParam == NULL)) { in OsTaskCreateParaCheck() 329 OS_SEC_L4_TEXT U32 OsTaskCreateOnly(TskHandle *taskPid, struct TskInitParam *initParam) in OsTaskCreateOnly() argument 339 ret = OsTaskCreateParaCheck(taskPid, initParam); in OsTaskCreateOnly() 350 taskId = taskCb->taskPid; in OsTaskCreateOnly() 366 *taskPid = taskId; in OsTaskCreateOnly() 374 OS_SEC_L4_TEXT U32 PRT_TaskCreate(TskHandle *taskPid, struct TskInitParam *initParam) in PRT_TaskCreate() argument 376 return OsTaskCreateOnly(taskPid, initParam); in PRT_TaskCreate()
|
D | prt_amp_task_init.c | 50 g_tskCbArray[idx].taskPid = (idx + g_tskBaseId); in OsTskAMPInit() 58 RUNNING_TASK->taskPid = idx + g_tskBaseId; in OsTskAMPInit()
|
D | prt_task_minor.c | 27 *yieldTo = (GET_TCB_PEND(OS_LIST_FIRST(&currTask->pendList)))->taskPid; in OsTaskYieldProc()
|
/kernel/uniproton/src/include/uapi/ |
D | prt_task.h | 884 typedef U32(*TskCreateHook)(TskHandle taskPid); 900 typedef U32(*TskDeleteHook)(TskHandle taskPid); 1003 extern U32 PRT_TaskCreate(TskHandle *taskPid, struct TskInitParam *initParam); 1025 extern U32 PRT_TaskResume(TskHandle taskPid); 1048 extern U32 PRT_TaskSuspend(TskHandle taskPid); 1071 extern U32 PRT_TaskDelete(TskHandle taskPid); 1159 extern U32 PRT_TaskSelf(TskHandle *taskPid); 1177 extern TskStatus PRT_TaskGetStatus(TskHandle taskPid); 1200 extern U32 PRT_TaskGetInfo(TskHandle taskPid, struct TskInfo *taskInfo); 1219 extern U32 PRT_TaskGetPriority(TskHandle taskPid, TskPrior *taskPrio); [all …]
|
D | prt_queue.h | 362 extern U32 PRT_QueueGetNodeNum(U32 queueId, U32 taskPid, U32 *queueNum);
|
/kernel/uniproton/src/om/cpup/ |
D | prt_cpup_thread_64.c | 28 OS_TASK_CYCLE_START(RUNNING_TASK->taskPid, OsCurCycleGet64()); in OsNowTskCycleStart() 46 OS_TASK_CYCLE_END(RUNNING_TASK->taskPid, OsCurCycleGet64()); in OsNowTskCycleEnd() 59 OS_TASK_CYCLE_START(g_highestTask->taskPid, g_cpuWinStart); in OsCpupFirstSwitch() 109 cpup[maxNum].id = g_tskCbArray[index].taskPid; in OsCpupTask() 226 OsCpupStartEnd(RUNNING_TASK->taskPid, RUNNING_TASK->taskPid, curCycle); in OsCpupThreadNow() 280 OsCpupStartEnd(RUNNING_TASK->taskPid, RUNNING_TASK->taskPid, curCycle); in PRT_CpupThread() 300 cpup[maxNum].id = g_tskCbArray[index].taskPid; in PRT_CpupThread()
|
/kernel/uniproton/doc/design/ |
D | interface_description.md | 532 U32 PRT_QueueGetNodeNum(U32 queueId, U32 taskPid, U32 *queueNum) 540 taskPid [IN] 类型#U32,线程PID。 711 U32 PRT_TaskCreate(TskHandle *taskPid, struct TskInitParam *initParam) 718 taskPid [OUT] 类型#TskHandle *,保存任务PID。 737 U32 PRT_TaskResume(TskHandle taskPid) 744 taskPid [IN] 类型#TskHandle,任务PID。 751 U32 PRT_TaskSuspend(TskHandle taskPid) 758 taskPid [IN] 类型#TskHandle,任务PID。 766 U32 PRT_TaskDelete(TskHandle taskPid) 773 taskPid [IN] 类型#TskHandle,任务PID。 [all …]
|
/kernel/uniproton/src/core/ipc/queue/ |
D | prt_queue_minor.c | 60 OS_SEC_L2_TEXT U32 PRT_QueueGetNodeNum(U32 queueId, U32 taskPid, U32 *queueNum) in PRT_QueueGetNodeNum() argument 78 if (taskPid != OS_QUEUE_PID_INVALID) { in PRT_QueueGetNodeNum() 81 if (queueNode->srcPid == taskPid) { in PRT_QueueGetNodeNum() 91 *queueNum = (taskPid == OS_QUEUE_PID_ALL) ? numAll : num; in PRT_QueueGetNodeNum()
|
D | prt_queue.c | 27 srcPid = RUNNING_TASK->taskPid; in OsGetSrcPid()
|
/kernel/uniproton/src/core/kernel/include/ |
D | prt_task_external.h | 53 TskHandle taskPid; member 160 #define GET_TCB_HANDLE(taskPid) (((struct TagTskCb *)g_tskCbArray) + TSK_GET_INDEX(taskPid)) argument 190 extern U32 OsTaskDelete(TskHandle taskPid); 191 extern U32 OsTaskCreateOnly(TskHandle *taskPid, struct TskInitParam *initParam);
|
/kernel/uniproton/src/core/ipc/sem/ |
D | prt_sem.c | 99 semPended->semOwner = runTsk->taskPid; in OsSemPendNotNeedSche() 172 semPosted->semOwner = resumedTask->taskPid; in OsSemPostSchePre()
|
D | prt_sem_minor.c | 102 pidBuf[taskCount] = tskCb->taskPid; in PRT_SemGetPendList()
|
/kernel/uniproton/src/net/lwip-2.1/src/ |
D | sys_arch.c | 95 if (g_lwprotThread != RUNNING_TASK->taskPid) { in sys_arch_protect() 98 g_lwprotThread = RUNNING_TASK->taskPid; in sys_arch_protect() 115 if (g_lwprotThread == RUNNING_TASK->taskPid) { in sys_arch_unprotect()
|
/kernel/uniproton/src/om/err/ |
D | prt_err.c | 45 taskCb = GET_TCB_HANDLE(RUNNING_TASK->taskPid); in OsErrRecord()
|
/kernel/uniproton/src/mem/fsc/ |
D | prt_fscmem.c | 127 currBlk->prev = (struct TagFscMemCtrl *)(uintptr_t)(RUNNING_TASK->taskPid); in OsFscMemAlloc()
|