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