Lines Matching refs:head
45 * Insert a new entry after the specified head..
47 static __inline__ void list_add(struct list_head *new, struct list_head *head)
49 __list_add(new, head, head->next);
55 static __inline__ void list_add_tail(struct list_head *new, struct list_head *head)
57 __list_add(new, head->prev, head);
79 static __inline__ int list_empty(struct list_head *head)
81 return head->next == head;
85 * Splice in "list" into "head"
87 static __inline__ void list_splice(struct list_head *list, struct list_head *head)
93 struct list_head *at = head->next;
95 first->prev = head;
96 head->next = first;
106 #define list_for_each(pos, head) \
107 for (pos = (head)->next; pos != (head); pos = pos->next)