LITE_OS_SEC_ALW_INLINE STATIC_INLINE BOOL LOS_ListEmpty ( LOS_DL_LIST pstNode  ) 

Identify whether a specified doubly linked list is empty.

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

在文件los_list.h213行定义。

参考 LOS_DL_LIST::pstNext.

00214 {
00215     return (BOOL)(pstNode->pstNext == pstNode);
00216 }