LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListInit ( LOS_DL_LIST pstList  ) 

Initialize a doubly linked list.

Description:
This API is used to initialize a doubly linked list.
注意:
  • The parameter passed in should be ensured to be a legal pointer.
参数:
参数名称 描述
pstList  [IN] Node in a doubly linked list.
返回值:
返回值 描述
None. 
Dependency:
  • los_list.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00

在文件los_list.h80行定义。

参考 LOS_DL_LIST::pstNextLOS_DL_LIST::pstPrev.

参考自 LOS_ListDelInit().

00081 {
00082     pstList->pstNext = pstList;
00083     pstList->pstPrev = pstList;
00084 }

这是这个函数的调用图。