LITE_OS_SEC_ALW_INLINE STATIC_INLINE VOID LOS_ListDelete ( LOS_DL_LIST pstNode  ) 

Delete a specified node from a doubly linked list.

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

在文件los_list.h183行定义。

参考 NULLLOS_DL_LIST::pstNextLOS_DL_LIST::pstPrev.

00184 {
00185     pstNode->pstNext->pstPrev = pstNode->pstPrev;
00186     pstNode->pstPrev->pstNext = pstNode->pstNext;
00187     pstNode->pstNext = (LOS_DL_LIST *)NULL;
00188     pstNode->pstPrev = (LOS_DL_LIST *)NULL;
00189 }