Lines Matching refs:head
67 INIT_LIST_HEAD(struct list_head *head)
69 head->prev = head;
70 head->next = head;
74 list_first(const struct list_head *head)
76 return head->next;
80 list_last(const struct list_head *head)
82 return head->prev;
98 list_empty(const struct list_head *head)
100 return (head->next == head);
104 list_is_singular(const struct list_head *head)
107 if (list_empty(head))
109 if (head->next != head->prev)
125 list_add(struct list_head *node, struct list_head *head)
127 __list_add_between(head, node, head->next);
131 list_add_tail(struct list_head *node, struct list_head *head)
133 __list_add_between(head->prev, node, head);
158 list_splice(const struct list_head *list, struct list_head *head)
161 __list_splice_between(head, list, head->next);
165 list_splice_tail(const struct list_head *list, struct list_head *head)
168 __list_splice_between(head->prev, list, head);
172 list_move(struct list_head *node, struct list_head *head)
175 list_add(node, head);
179 list_move_tail(struct list_head *node, struct list_head *head)
182 list_add_tail(node, head);