#define LOS_DL_LIST_ENTRY ( item,
type,
member   )     ((type *)((char *)item - LOS_OFF_SET_OF(type, member))) \

Obtain the pointer to a structure that contains a doubly linked list.

Description:
This API is used to obtain the pointer to a structure that contains a doubly linked list.
  • None.
注意:
  • None.
参数:
参数名称 描述
item  [IN] Current node's pointer to the next node.
type  [IN] Structure name.
member  [IN] Member name of the doubly linked list in the structure.
返回值:
返回值 描述
Pointer  to the structure that contains the doubly linked list.
Dependency:
  • los_list.h: the header file that contains the API declaration.
参见:
自从:
Huawei LiteOS V100R001C00

在文件los_list.h286行定义。