Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102728760
D43337.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
324 B
Referenced Files
None
Subscribers
None
D43337.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43337: mbuf: Add mbufq_empty
Attached
Detach File
Event Timeline
Log In to Comment