Lines Matching refs:next
39 #define list_empty(a) ((a)->list_head.next == &(a)->list_head)
44 lnew->next = (node)->next; \
45 (node)->next->prev = lnew; \
46 (node)->next = lnew; \
51 lnew->next = (node); \
53 (node)->prev->next = lnew; \
58 (node)->prev->next = (node)->next; \
59 (node)->next->prev = (node)->prev; \
60 (node)->next = (node)->prev = NULL
72 list->list_head.next = list->list_head.prev = &list->list_head; in list_create()
81 ASSERT(list->list_head.next == node); in list_destroy()
84 node->next = node->prev = NULL; in list_destroy()
128 ASSERT(lold->next != NULL); in list_remove()
135 list_node_t *head = list->list_head.next; in list_remove_head()
157 return (list_object(list, list->list_head.next)); in list_head()
173 if (node->next != &list->list_head) in list_next()
174 return (list_object(list, node->next)); in list_next()
204 dstnode->prev->next = srcnode->next; in list_move_tail()
205 srcnode->next->prev = dstnode->prev; in list_move_tail()
207 srcnode->prev->next = dstnode; in list_move_tail()
210 srcnode->next = srcnode->prev = srcnode; in list_move_tail()
219 lnew->next = lold->next; in list_link_replace()
221 lold->prev->next = lnew; in list_link_replace()
222 lold->next->prev = lnew; in list_link_replace()
223 lold->next = lold->prev = NULL; in list_link_replace()
229 ln->next = NULL; in list_link_init()
236 EQUIV(ln->next == NULL, ln->prev == NULL); in list_link_active()
237 return (ln->next != NULL); in list_link_active()