Home | History | Annotate | Download | only in blkid

Lines Matching refs:head

53  * @head:	list head to add it after
55 * Insert a new entry after the specified head.
58 _INLINE_ void list_add(struct list_head *add, struct list_head *head)
60 __list_add(add, head, head->next);
66 * @head: list head to add it before
68 * Insert a new entry before the specified head.
71 _INLINE_ void list_add_tail(struct list_head *add, struct list_head *head)
73 __list_add(add, head->prev, head);
114 * @head: the list to test.
116 _INLINE_ int list_empty(struct list_head *head)
118 return head->next == head;
124 * @head: the place to add it in the first list.
126 _INLINE_ void list_splice(struct list_head *list, struct list_head *head)
132 struct list_head *at = head->next;
134 first->prev = head;
135 head->next = first;
154 * @head: the head for your list.
156 #define list_for_each(pos, head) \
157 for (pos = (head)->next; pos != (head); pos = pos->next)
164 * @head: the head for your list (not included in iteration).
166 #define list_for_each_safe(pos, pnext, head) \
167 for (pos = (head)->next, pnext = pos->next; pos != (head); \