corosync  2.4.2-dirty
Data Structures | Macros
list.h File Reference

Linked list API. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  list_head
 

Macros

#define DECLARE_LIST_INIT(name)   struct list_head name = { &(name), &(name) }
 
#define list_entry(ptr, type, member)   ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
 

Detailed Description

Linked list API.

This implementation uses the same API as the linux kernel to help us kernel developers easily use the list primatives

Definition in file list.h.

Macro Definition Documentation

◆ DECLARE_LIST_INIT

#define DECLARE_LIST_INIT (   name)    struct list_head name = { &(name), &(name) }

Definition at line 51 of file list.h.

◆ list_entry

#define list_entry (   ptr,
  type,
  member 
)    ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))