ringbuffer, guid, iovec stuff, and mmio

This commit is contained in:
2026-10-14 23:26:30 +02:00
parent 4c781f31ad
commit d7857f18cd
13 changed files with 701 additions and 12 deletions
+8
View File
@@ -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) \