Lines Matching full:head
56 * @head: list head to add it after
58 * Insert a new entry after the specified head.
61 _INLINE_ void list_add(struct list_head *add, struct list_head *head)
63 __list_add(add, head, head->next);
69 * @head: list head to add it before
71 * Insert a new entry before the specified head.
74 _INLINE_ void list_add_tail(struct list_head *add, struct list_head *head)
76 __list_add(add, head->prev, head);
117 * @head: the list to test.
119 _INLINE_ int list_empty(struct list_head *head)
121 return head->next == head;
127 * @head: the place to add it in the first list.
129 _INLINE_ void list_splice(struct list_head *list, struct list_head *head)
135 struct list_head *at = head->next;
137 first->prev = head;
138 head->next = first;
157 * @head: the head for your list.
159 #define list_for_each(pos, head) \
160 for (pos = (head)->next; pos != (head); pos = pos->next)
167 * @head: the head for your list (not included in iteration).
169 #define list_for_each_safe(pos, pnext, head) \
170 for (pos = (head)->next, pnext = pos->next; pos != (head); \