Go to the documentation of this file. 43 #ifndef LIST_H_DEFINED 44 #define LIST_H_DEFINED 51 #define DECLARE_LIST_INIT(name) \ 52 struct list_head name = { &(name), &(name) } 54 static void inline list_init (
struct list_head *head)
74 static void inline list_del (
struct list_head *_remove)
84 #define list_entry(ptr,type,member)\ 85 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) 87 static inline int list_empty(
const struct list_head *l)
100 current = head->
next;
104 last->
next = current;
105 current->
prev = last;