Page MenuHomeFreeBSD

D30959.diff
No OneTemporary

D30959.diff

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

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)

Event Timeline