queue: add dq_inqueue & sq_inqueue support
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
ebaea6bd9f
commit
d313248a5b
@ -264,6 +264,11 @@
|
|||||||
#define sq_tail(q) ((q)->tail)
|
#define sq_tail(q) ((q)->tail)
|
||||||
#define dq_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
|
* Public Type Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user