Lines Matching refs:next
24 struct link_t *prev, *next; member
28 for ((cur_link) = (list)->next, \
29 (tmp_link) = (cur_link) ? (cur_link)->next : NULL; \
31 (cur_link) = (tmp_link), (tmp_link) = (cur_link)->next)
34 link_t list = { .prev = &list, .next = &list }
38 list->prev = list->next = list; in list_init()
43 if (!list->next) in list_add_tail()
47 item->next = list; in list_add_tail()
48 list->prev->next = item; in list_add_tail()
54 item->prev->next = item->next; in list_delete()
55 item->next->prev = item->prev; in list_delete()
56 item->next = item->prev = item; in list_delete()
61 return !list->next || list->next == list; in list_is_empty()