21#define ATALK_LIST_HEAD_INIT(name) { &(name), &(name) }
23#define ATALK_LIST_HEAD(name) \
24 struct list_head name = ATALK_LIST_HEAD_INIT(name)
26#define ATALK_INIT_LIST_HEAD(ptr) do { \
27 (ptr)->next = (ptr); (ptr)->prev = (ptr); \
37static inline void __list_add(
struct list_head *
new,
57 __list_add(
new, head, head->
next);
70 __list_add(
new, head->
prev, head);
111static inline int list_empty(
struct list_head *head)
113 return head->
next == head;
142#define list_entry(ptr, type, member) \
143 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
150#define list_for_each(pos, head) \
151 for (pos = (head)->next; pos != (head); \
159#define list_for_each_prev(pos, head) \
160 for (pos = (head)->prev; pos != (head); \
#define next
Definition hash.c:35
#define ATALK_INIT_LIST_HEAD(ptr)
Definition include/atalk/list.h:26
static int first
Definition nad_ls.c:54
Definition include/atalk/list.h:17
struct list_head * prev
Definition include/atalk/list.h:18
struct list_head * next
Definition include/atalk/list.h:18
Definition etc/atalkd/list.h:6