Home | History | Annotate | Download | only in include

Lines Matching refs:head

38 static inline void list_add(struct list_head *new, struct list_head *head)
40 __list_add(new, head, head->next);
43 static inline void list_add_tail(struct list_head *new, struct list_head *head)
45 __list_add(new, head->prev, head);
66 static inline int list_empty(const struct list_head *head)
68 return head->next == head;
74 #define list_for_each(pos, head) \
75 for (pos = (head)->next; pos != (head); pos = pos->next)
77 #define list_for_each_safe(pos, n, head) \
78 for (pos = (head)->next, n = pos->next; pos != (head); \
80 #define list_for_each_entry(pos, head, member) \
81 for (pos = list_entry((head)->next, typeof(*pos), member); \
82 &pos->member != (head); \
84 #define list_for_each_entry_safe(pos, n, head, member) \
85 for (pos = list_entry((head)->next, typeof(*pos), member), \
87 &pos->member != (head); \