LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListAdd ( LOS_DL_LIST pstList,
LOS_DL_LIST pstNode  
)

Insert a new node to a doubly linked list.

Description:
This API is used to insert a new node to a doubly linked list.
注意:
  • The parameters passed in should be ensured to be legal pointers.
参数:
参数名称 描述
pstList  [IN] Doubly linked list where the new node is inserted.
pstNode  [IN] New node to be inserted.
返回值:
返回值 描述
None 
Dependency:
  • los_list.h: the header file that contains the API declaration.
参见:
LOS_ListDelete
自从:
Huawei LiteOS V100R001C00

在文件los_list.h129行定义。

参考 LOS_DL_LIST::pstNextLOS_DL_LIST::pstPrev.

参考自 LOS_ListTailInsert().

00130 {
00131     pstNode->pstNext = pstList->pstNext;
00132     pstNode->pstPrev = pstList;
00133     pstList->pstNext->pstPrev = pstNode;
00134     pstList->pstNext = pstNode;
00135 }

这是这个函数的调用图。