Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107166728
D30959.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
832 B
Referenced Files
None
Subscribers
None
D30959.diff
View Options
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -1526,6 +1526,16 @@
mb = m_free(mb);
}
+/*
+ * Temporary primitive to allow freeing without going through m_free.
+ */
+void
+m_free_raw(struct mbuf *mb)
+{
+
+ uma_zfree(zone_mbuf, mb);
+}
+
int
m_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params,
struct m_snd_tag **mstp)
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -825,6 +825,7 @@
u_int m_fixhdr(struct mbuf *);
struct mbuf *m_fragment(struct mbuf *, int, int);
void m_freem(struct mbuf *);
+void m_free_raw(struct mbuf *);
struct mbuf *m_get2(int, int, short, int);
struct mbuf *m_getjcl(int, short, int, int);
struct mbuf *m_getm2(struct mbuf *, int, int, short, int);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 3:40 AM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15760714
Default Alt Text
D30959.diff (832 B)
Attached To
Mode
D30959: mbuf: add m_free_raw to be used instead of directly calling uma_zfree
Attached
Detach File
Event Timeline
Log In to Comment