queue: add dq_inqueue & sq_inqueue support

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2023-06-25 11:15:47 +08:00 committed by Xiang Xiao
parent ebaea6bd9f
commit d313248a5b
1 changed files with 5 additions and 0 deletions

View File

@ -264,6 +264,11 @@
#define sq_tail(q) ((q)->tail)
#define dq_tail(q) ((q)->tail)
#define sq_inqueue(p, q) \
((p)->flink || sq_tail(q) == (p))
#define dq_inqueue(p, q) \
((p)->flink || dq_tail(q) == (p))
/****************************************************************************
* Public Type Definitions
****************************************************************************/