#define LOS_OFF_SET_OF ( type,
member   )     ((long)&((type *)0)->member)

Obtain the pointer to a doubly linked list in a structure.

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

在文件los_list.h260行定义。