#define LOS_DL_LIST_FOR_EACH_SAFE ( item,
next,
list   ) 

值:

for (item = (list)->pstNext, next = item->pstNext; item != (list); \
        item = next, next = item->pstNext)
Iterate over a doubly linked list safe against removal of list entry.

Description:
This API is used to iterate over a doubly linked list safe against removal of list entry.
注意:
  • None.
参数:
参数名称 描述
item  [IN] Pointer to the structure that contains the doubly linked list that is to be traversed.
next  [IN] Save the next node.
list  [IN] Pointer to the doubly linked list to be traversed.
返回值:
返回值 描述
None. 
Dependency:
  • los_list.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00

在文件los_list.h422行定义。