UINT32 LOS_TaskSwitchInfoGet ( UINT32  uwIdx,
UINT32 pTaskSwitchInfo  
)

Obtain tasks switch info.

Description:
This API is used to obtain tasks switch info.
注意:
None.
参数:
参数名称 描述
uwIdx  [IN] Type UINT32 Switch info array index.
pTaskSwitchInfo  [OUT] Type UINT32* First 4 bytes is task id, and then is task name, name len is OS_TSK_NAME_LEN.
返回值:
返回值 描述
LOS_ERRNO_TSK_PTR_NULL  0x02000201: Null parameter.
LOS_OK  0: The task switch information is successfully obtained.
Dependency:
  • los_task.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00