#define LOS_DL_LIST_FOR_EACH_ENTRY_SAFE ( item,
next,
list,
type,
member   ) 

值:

for (item = LOS_DL_LIST_ENTRY((list)->pstNext, type, member), \
        next = LOS_DL_LIST_ENTRY(item->member.pstNext, type, member); \
        &item->member != (list); \
        item = next, next = LOS_DL_LIST_ENTRY(item->member.pstNext, type, member))
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.
type  [IN] Structure name.
member  [IN] Member name of the doubly linked list in the structure.
返回值:
返回值 描述
None. 
Dependency:
  • los_list.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00

在文件los_list.h339行定义。