UINT32 LOS_TaskInfoGet ( UINT32  uwTaskID,
TSK_INFO_S pstTaskInfo  
)

Obtain a task information structure.

Description:
This API is used to obtain a task information structure.
注意:
  • One parameter of this interface is a pointer, it should be a correct value, otherwise, the system may be abnormal.
参数:
参数名称 描述
uwTaskID  [IN] Type UINT32 Task ID. The task id value is obtained from task creation.
pstTaskInfo  [OUT] Type TSK_INFO_S* Pointer to the task information structure to be obtained.
返回值:
返回值 描述
LOS_ERRNO_TSK_PTR_NULL  Null parameter.
LOS_ERRNO_TSK_ID_INVALID  Invalid task ID.
LOS_ERRNO_TSK_NOT_CREATED  The task is not created.
LOS_OK  The task information structure is successfully obtained.
Dependency:
  • los_task.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00