22#define ATALK_LIST_HEAD_INIT(name) { &(name), &(name) }
24#define ATALK_LIST_HEAD(name) \
25 struct list_head name = ATALK_LIST_HEAD_INIT(name)
27#define ATALK_INIT_LIST_HEAD(ptr) do { \
28 (ptr)->next = (ptr); (ptr)->prev = (ptr); \
38static inline void __list_add(
struct list_head *
new,
58 __list_add(
new, head, head->
next);
71 __list_add(
new, head->
prev, head);
112static inline int list_empty(
struct list_head *head)
114 return head->
next == head;
143#define list_entry(ptr, type, member) \
144 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
151#define list_for_each(pos, head) \
152 for (pos = (head)->next; pos != (head); \
160#define list_for_each_prev(pos, head) \
161 for (pos = (head)->prev; pos != (head); \
#define next
Definition hash.c:35
#define ATALK_INIT_LIST_HEAD(ptr)
Definition include/atalk/list.h:27
static int first
Definition nad_ls.c:54
Definition include/atalk/list.h:18
struct list_head * prev
Definition include/atalk/list.h:19
struct list_head * next
Definition include/atalk/list.h:19
Definition etc/atalkd/list.h:6