Page MenuHomeFreeBSD

D46787.id.diff
No OneTemporary

D46787.id.diff

diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -1138,6 +1138,11 @@
(!(((m)->m_flags & M_EXT)) || \
(m_extrefcnt(m) == 1)))
+/* Similar to M_WRITABLE but permit writing to M_EXTPG mbufs. */
+#define M_WRITABLE_EXTPG(m) \
+ (((m)->m_flags & M_RDONLY) == 0 && \
+ (!(((m)->m_flags & M_EXT)) || (m_extrefcnt(m) == 1)))
+
/* Check if the supplied mbuf has a packet header, or else panic. */
#define M_ASSERTPKTHDR(m) \
KASSERT((m) != NULL && (m)->m_flags & M_PKTHDR, \

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 7:38 AM (9 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
12842630
Default Alt Text
D46787.id.diff (542 B)

Event Timeline