Home | History | Annotate | Download | only in keama

Lines Matching refs:head2

51 #define	TAILQ_CONCAT(head1, head2) do {					\
52 if (!TAILQ_EMPTY(head2)) { \
53 *(head1)->tqh_last = (head2)->tqh_first; \
54 (head2)->tqh_first->next.tqe_prev = (head1)->tqh_last; \
55 (head1)->tqh_last = (head2)->tqh_last; \
56 TAILQ_INIT((head2)); \
133 #define TAILQ_SWAP(head1, head2, type) do { \
136 (head1)->tqh_first = (head2)->tqh_first; \
137 (head1)->tqh_last = (head2)->tqh_last; \
138 (head2)->tqh_first = swap_first; \
139 (head2)->tqh_last = swap_last; \
144 if ((swap_first = (head2)->tqh_first) != NULL) \
145 swap_first->next.tqe_prev = &(head2)->tqh_first; \
147 (head2)->tqh_last = &(head2)->tqh_first; \