Lines Matching refs:head
59 * @head: list head to add it after
61 * Insert a new entry after the specified head.
65 struct flist_head *head)
67 __flist_add(new_entry, head, head->next);
71 struct flist_head *head)
73 __flist_add(new_entry, head->prev, head);
115 * @head: the list to test.
117 static inline int flist_empty(const struct flist_head *head)
119 return head->next == head;
137 struct flist_head *head)
140 __flist_splice(list, head, head->next);
144 struct flist_head *head)
147 __flist_splice(list, head->prev, head);
151 struct flist_head *head)
154 __flist_splice(list, head->prev, head);
160 struct flist_head *head)
163 __flist_splice(list, head, head->next);
186 * @head: the head for your list.
188 #define flist_for_each(pos, head) \
189 for (pos = (head)->next; pos != (head); pos = pos->next)
195 * @head: the head for your list.
197 #define flist_for_each_safe(pos, n, head) \
198 for (pos = (head)->next, n = pos->next; pos != (head); \
201 extern void flist_sort(void *priv, struct flist_head *head,