Page MenuHomeFreeBSD

D43337.diff
No OneTemporary

D43337.diff

diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1607,6 +1607,12 @@
return (STAILQ_LAST(&mq->mq_head, mbuf, m_stailqpkt));
}
+static inline bool
+mbufq_empty(const struct mbufq *mq)
+{
+ return (mq->mq_len == 0);
+}
+
static inline int
mbufq_full(const struct mbufq *mq)
{

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 11:11 AM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14675168
Default Alt Text
D43337.diff (324 B)

Event Timeline