19 #define LIST_HEAD_INIT(name) { &(name), &(name) }
21 #define LIST_HEAD(name) \
22 struct list_head name = LIST_HEAD_INIT(name)
24 #define INIT_LIST_HEAD(ptr) do { \
25 (ptr)->next = (ptr); (ptr)->prev = (ptr); \
92 entry->next = (
void *) 0;
93 entry->prev = (
void *) 0;
185 #define list_entry(ptr, type, member) \
186 ((type *)((char *)(ptr)-(uintptr_t)(&((type *)0)->member)))
193 #define list_for_each(pos, head) \
194 for (pos = (head)->next; pos != (head); \
201 #define list_for_each_prev(pos, head) \
202 for (pos = (head)->prev; pos != (head); \
211 #define list_for_each_safe(pos, n, head) \
212 for (pos = (head)->next, n = pos->next; pos != (head); \
213 pos = n, n = pos->next)
221 #define list_for_each_entry(pos, head, member) \
222 for (pos = list_entry((head)->next, typeof(*pos), member); \
223 &pos->member != (head); \
224 pos = list_entry(pos->member.next, typeof(*pos), member))
233 #define list_for_each_entry_safe(pos, n, head, member) \
234 for (pos = list_entry((head)->next, typeof(*pos), member), \
235 n = list_entry(pos->member.next, typeof(*pos), member); \
236 &pos->member != (head); \
237 pos = n, n = list_entry(n->member.next, typeof(*n), member))
246 #define list_for_each_entry_continue(pos, head, member) \
247 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
248 &pos->member != (head); \
249 pos = list_entry(pos->member.next, typeof(*pos), member))
struct outqueuenode * head
static int list_empty(struct list_entry *head)
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
static void list_add(struct list_entry *entry, struct list_entry *prev, struct list_entry *next)
#define INIT_LIST_HEAD(ptr)
static void list_move_tail(struct list_head *list, struct list_head *head)
static void __list_del(struct list_head *prev, struct list_head *next)
static void __list_splice(struct list_head *list, struct list_head *head)
static void list_splice(struct list_head *list, struct list_head *head)
static void __list_add(struct list_head *new, struct list_head *prev, struct list_head *next)
static void list_splice_init(struct list_head *list, struct list_head *head)
static void list_del(struct list_head *entry)
static void list_del_init(struct list_head *entry)
static void list_move(struct list_head *list, struct list_head *head)
static unsigned __int64 next