Lines Matching refs:list
2 struct list { struct
3 struct list *next, *prev; argument
7 list_init(struct list *list) in list_init() argument
9 list->next = list; in list_init()
10 list->prev = list; in list_init()
14 list_empty(struct list *list) in list_empty() argument
16 return list->next == list; in list_empty()
20 list_insert(struct list *link, struct list *new_link) in list_insert()
29 list_append(struct list *list, struct list *new_link) in list_append() argument
31 list_insert((struct list *)list, new_link); in list_append()
35 list_prepend(struct list *list, struct list *new_link) in list_prepend() argument
37 list_insert(list->next, new_link); in list_prepend()
41 list_remove(struct list *link) in list_remove()
50 #define list_head(list, type, member) \ argument
51 list_entry((list)->next, type, member)
53 #define list_tail(list, type, member) \ argument
54 list_entry((list)->prev, type, member)
59 #define list_for_each_entry(pos, list, member) \ argument
60 for (pos = list_head(list, typeof(*pos), member); \
61 &pos->member != (list); \