Lines Matching defs:head
71 * @head: list head to add it after
73 * Insert a new entry after the specified head.
76 static __inline__ void list_add(struct list_head *new, struct list_head *head)
78 __list_add(new, head, head->next);
84 * @head: list head to add it before
86 * Insert a new entry before the specified head.
89 static __inline__ void list_add_tail(struct list_head *new, struct list_head *head)
91 __list_add(new, head->prev, head);
135 * @head: the list to test.
137 static __inline__ int list_empty(struct list_head *head)
139 return head->next == head;
145 * @head: the place to add it in the first list.
148 struct list_head *head)
154 struct list_head *at = head->next;
156 first->prev = head;
157 head->next = first;
176 * @head: the head for your list.
178 #define list_for_each(pos, head) \
179 for (pos = (head)->next; pos != (head); pos = pos->next)
185 * @head: the head for your list.
187 #define list_for_each_safe(pos, n, head) \
188 for (pos = (head)->next, n = pos->next; pos != (head); \