Lines Matching refs:head
57 static inline void list_add(struct list_head *new_node, struct list_head *head) in list_add() argument
59 list_add_node(new_node, head, head->next); in list_add()
63 struct list_head *head) in list_add_tail() argument
65 list_add_node(new_node, head->prev, head); in list_add_tail()
85 static inline _Bool list_empty(const struct list_head *head) in list_empty() argument
87 return head->next == head; in list_empty()
91 struct list_head *head) in list_splice_node() argument
95 struct list_head *at = head->next; in list_splice_node()
97 first->prev = head; in list_splice_node()
98 head->next = first; in list_splice_node()
104 static inline void list_splice(const struct list_head *list, struct list_head *head) in list_splice() argument
107 list_splice_node(list, head); in list_splice()
112 struct list_head *head) in list_splice_init() argument
115 list_splice_node(list, head); in list_splice_init()
123 #define list_for_each(pos, head) \ argument
124 for ((pos) = (head)->next; (pos) != (head); (pos) = (pos)->next)
126 #define list_for_each_safe(pos, n, head) \ argument
127 for ((pos) = (head)->next, (n) = (pos)->next; (pos) != (head); \
157 #define hlist_for_each(pos, head) \ argument
158 for ((pos) = (head)->first; (pos) != NULL; (pos) = (pos)->next)