Home | History | Annotate | Download | only in libutil

Lines Matching full:head

32  * Init a list head to create an empty list from it
59 * @param head list head to add it after
61 * Insert a new entry after the specified head.
64 static __inline__ void list_add(struct list_head * new_entry, struct list_head * head)
66 __list_add(new_entry, head, head->next);
72 * @param head list head to add it before
74 * Insert a new entry before the specified head.
77 static __inline__ void list_add_tail(struct list_head * new_entry, struct list_head * head)
79 __list_add(new_entry, head->prev, head);
118 * @param head the list to test.
120 static __inline__ int list_empty(struct list_head const * head)
122 return head->next == head;
128 * @param head the place to add it in the first list.
130 static __inline__ void list_splice(struct list_head * list, struct list_head * head)
136 struct list_head * at = head->next;
138 first->prev = head;
139 head->next = first;
158 * @param head the head for your list.
160 #define list_for_each(pos, head) \
161 for (pos = (head)->next; pos != (head); pos = pos->next)
167 * @param head the head for your list.
169 #define list_for_each_safe(pos, n, head) \
170 for (pos = (head)->next, n = pos->next; pos != (head); \