mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Macro needed for NEWCARD kernel and STAILQ emulation.
Pointed out by Richard Wackerbar
This commit is contained in:
parent
f9eb66d73a
commit
1c6972cf90
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52643
1 changed files with 4 additions and 0 deletions
|
@ -224,6 +224,10 @@ struct { \
|
|||
(head)->stqh_last = &(head)->stqh_first; \
|
||||
} while (0)
|
||||
|
||||
#define STAILQ_REMOVE_HEAD_UNTIL(head, elm, field) do { \
|
||||
if (((head)->stqh_first = (elm)->field.stqe_next) == NULL) \
|
||||
(head)->stqh_last = &(head)->stqh_first; \
|
||||
} while (0)
|
||||
|
||||
#define STAILQ_REMOVE(head, elm, type, field) do { \
|
||||
if ((head)->stqh_first == (elm)) { \
|
||||
|
|
Loading…
Reference in a new issue