Searched refs:head1 (Results 1 – 1 of 1) sorted by relevance
171 #define STAILQ_SWAP(head1, head2, type) do { \ argument172 struct type *swap_first = STAILQ_FIRST(head1); \173 struct type **swap_last = (head1)->stqh_last; \174 STAILQ_FIRST(head1) = STAILQ_FIRST(head2); \175 (head1)->stqh_last = (head2)->stqh_last; \178 if (STAILQ_EMPTY(head1)) \179 (head1)->stqh_last = &STAILQ_FIRST(head1); \255 #define LIST_SWAP(head1, head2, type, field) do { \ argument256 struct type *swap_tmp = LIST_FIRST((head1)); \257 LIST_FIRST((head1)) = LIST_FIRST((head2)); \[all …]