Home | History | Annotate | Download | only in netlink

Lines Matching full:head

38 				    struct nl_list_head *head)
40 __nl_list_add(obj, head->prev, head);
44 struct nl_list_head *head)
46 __nl_list_add(obj, head, head->next);
55 static inline int nl_list_empty(struct nl_list_head *head)
57 return head->next == head;
67 #define nl_list_at_tail(pos, head, member) \
68 ((pos)->member.next == (head))
70 #define nl_list_at_head(pos, head, member) \
71 ((pos)->member.prev == (head))
76 #define nl_list_first_entry(head, type, member) \
77 nl_list_entry((head)->next, type, member)
79 #define nl_list_for_each_entry(pos, head, member) \
80 for (pos = nl_list_entry((head)->next, typeof(*pos), member); \
81 &(pos)->member != (head); \
84 #define nl_list_for_each_entry_safe(pos, n, head, member) \
85 for (pos = nl_list_entry((head)->next, typeof(*pos), member), \
87 &(pos)->member != (head); \
90 #define nl_init_list_head(head) \
91 do { (head)->next = (head); (head)->prev = (head); } while (0)