Home
last modified time | relevance | path

Searched refs:taskPid (Results 1 – 22 of 22) sorted by relevance

/kernel/uniproton/src/core/kernel/task/
Dprt_task_info.c46 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 …]
Dprt_task_priority.c20 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()
Dprt_amp_task_minor.c20 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()
Dprt_amp_task_del.c43 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()
Dprt_taskself_id.c20 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()
Dprt_task_attrib.c20 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()
Dprt_task_del.c42 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()
Dprt_task_init.c175 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()
Dprt_amp_task_init.c50 g_tskCbArray[idx].taskPid = (idx + g_tskBaseId); in OsTskAMPInit()
58 RUNNING_TASK->taskPid = idx + g_tskBaseId; in OsTskAMPInit()
Dprt_task_minor.c27 *yieldTo = (GET_TCB_PEND(OS_LIST_FIRST(&currTask->pendList)))->taskPid; in OsTaskYieldProc()
/kernel/uniproton/src/include/uapi/
Dprt_task.h884 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 …]
Dprt_queue.h362 extern U32 PRT_QueueGetNodeNum(U32 queueId, U32 taskPid, U32 *queueNum);
/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_64.c28 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/
Dinterface_description.md532 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/
Dprt_queue_minor.c60 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()
Dprt_queue.c27 srcPid = RUNNING_TASK->taskPid; in OsGetSrcPid()
/kernel/uniproton/src/core/kernel/include/
Dprt_task_external.h53 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/
Dprt_sem.c99 semPended->semOwner = runTsk->taskPid; in OsSemPendNotNeedSche()
172 semPosted->semOwner = resumedTask->taskPid; in OsSemPostSchePre()
Dprt_sem_minor.c102 pidBuf[taskCount] = tskCb->taskPid; in PRT_SemGetPendList()
/kernel/uniproton/src/net/lwip-2.1/src/
Dsys_arch.c95 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/
Dprt_err.c45 taskCb = GET_TCB_HANDLE(RUNNING_TASK->taskPid); in OsErrRecord()
/kernel/uniproton/src/mem/fsc/
Dprt_fscmem.c127 currBlk->prev = (struct TagFscMemCtrl *)(uintptr_t)(RUNNING_TASK->taskPid); in OsFscMemAlloc()