Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165173985
D10158.id26801.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
559 B
Referenced Files
None
Subscribers
None
D10158.id26801.diff
View Options
Index: head/sys/sys/mbuf.h
===================================================================
--- head/sys/sys/mbuf.h
+++ head/sys/sys/mbuf.h
@@ -1320,5 +1320,18 @@
STAILQ_INSERT_HEAD(&mq->mq_head, m, m_stailqpkt);
mq->mq_len++;
}
+
+/*
+ * Note: this doesn't enforce the maximum list size for dst.
+ */
+static inline void
+mbufq_concat(struct mbufq *mq_dst, struct mbufq *mq_src)
+{
+
+ mq_dst->mq_len += mq_src->mq_len;
+ STAILQ_CONCAT(&mq_dst->mq_head, &mq_src->mq_head);
+ mq_src->mq_len = 0;
+}
+
#endif /* _KERNEL */
#endif /* !_SYS_MBUF_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 7, 1:46 PM (22 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36177339
Default Alt Text
D10158.id26801.diff (559 B)
Attached To
Mode
D10158: [mbufq] add mbufq_concat_all()
Attached
Detach File
Event Timeline
Log In to Comment