ringbuffer, guid, iovec stuff, and mmio
This commit is contained in:
@@ -42,6 +42,14 @@
|
||||
(elm)->field.tql_prev = &(head)->tqh_first; \
|
||||
} while (0)
|
||||
|
||||
#define tailq_insert_before(listelm, elm, field) \
|
||||
do { \
|
||||
(elm)->field.tql_prev = (listelm)->field.tql_prev; \
|
||||
(elm)->field.tql_next = (listelm); \
|
||||
*(listelm)->field.tql_prev = (elm); \
|
||||
(listelm)->field.tql_prev = &(elm)->field.tql_next; \
|
||||
} while (0)
|
||||
|
||||
#define tailq_remove(head, elm, field) \
|
||||
do { \
|
||||
if (((elm)->field.tql_next) != nullptr) \
|
||||
|
||||
Reference in New Issue
Block a user