24#define LIST_HEAD_INIT(name) { &(name), &(name) }
26#define LIST_HEAD(name) \
27 struct list_head name = LIST_HEAD_INIT(name)
29#define INIT_LIST_HEAD(ptr) do { \
30 (ptr)->next = (ptr); (ptr)->prev = (ptr); \
190#define list_entry(ptr, type, member) \
191 ((type *)((char *)(ptr)-(size_t)(&((type *)0)->member)))
193#define list_entry(ptr, type, member) \
194 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
202#define list_for_each(pos, head) \
203 for (pos = (head)->next; pos != (head); \
210#define list_for_each_prev(pos, head) \
211 for (pos = (head)->prev; pos != (head); \
220#define list_for_each_safe(pos, n, head) \
221 for (pos = (head)->next, n = pos->next; pos != (head); \
222 pos = n, n = pos->next)
230#define list_for_each_entry(pos, head, member) \
231 for (pos = list_entry((head)->next, typeof(*pos), member); \
232 &pos->member != (head); \
233 pos = list_entry(pos->member.next, typeof(*pos), member))
242#define list_for_each_entry_safe(pos, n, head, member) \
243 for (pos = list_entry((head)->next, typeof(*pos), member), \
244 n = list_entry(pos->member.next, typeof(*pos), member); \
245 &pos->member != (head); \
246 pos = n, n = list_entry(n->member.next, typeof(*n), 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