diff options
author | Olivier Certner <olce@FreeBSD.org> | 2024-07-08 16:15:49 +0000 |
---|---|---|
committer | Olivier Certner <olce@FreeBSD.org> | 2024-12-16 14:42:26 +0000 |
commit | 34740937f7a46c7475bb57e804701ba8830bf6ed (patch) | |
tree | f7b3daf8d3e685565604d5a72b06165fdbd07123 /sys/gnu/dts/arm64/hisilicon | |
parent | 9dc5b3dbb063f55543ff8a0619eee2e294fb7dc5 (diff) |
queue: New debug macros for STAILQ
The new STAILQ_ASSERT_EMPTY() macro allows callers to assert that some
STAILQ is empty. It leverages the new QMD_STAILQ_CHECK_EMPTY() internal
macro.
QMD_STAILQ_CHECK_EMPTY() is a check for empty STAILQ, where heads's
'stqh_last' field must point to the 'stqh_first' one. Use it in
STAILQ_ASSERT_EMPTY().
QMD_STAILQ_CHECK_TAIL() checks that the tail pointed by 'head' does not
have a next element. It is similar to the already existing
QMD_TAILQ_CHECK_TAIL(), but without the superfluous 'field' argument and
clearer documentation. Use it in STAILQ_INSERT_TAIL().
Approved by: markj (mentor)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46889
Diffstat (limited to 'sys/gnu/dts/arm64/hisilicon')
0 files changed, 0 insertions, 0 deletions