summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_mbuf2.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-07-17 14:04:03 +0000
committerrwatson <rwatson@FreeBSD.org>2005-07-17 14:04:03 +0000
commit38dffb25ed020bf3bd3136f835904c8618803952 (patch)
tree9aa25437d2359619ec3fd7047a6c85ef26da0e20 /sys/kern/uipc_mbuf2.c
parent82bb8e24de2d0f1c63aa8925bf17958bdbdf2153 (diff)
downloadFreeBSD-src-38dffb25ed020bf3bd3136f835904c8618803952.zip
FreeBSD-src-38dffb25ed020bf3bd3136f835904c8618803952.tar.gz
Define four constants, MBUF_{,MEM,CLUSTER,PACKET,TAG}_MEM_NAME, which
are string names for their respective UMA zones and malloc types, and are passed into uma_zcreate() and MALLOC_DEFINE(). Export them outside of _KERNEL in mbuf.h so that netstat can reference them. Change the names to improve consistency, with each zone/type associated with the mbuf allocator being prefixed mbuf_. MFC after: 1 week
Diffstat (limited to 'sys/kern/uipc_mbuf2.c')
-rw-r--r--sys/kern/uipc_mbuf2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf2.c b/sys/kern/uipc_mbuf2.c
index 81b2260..109b3a6 100644
--- a/sys/kern/uipc_mbuf2.c
+++ b/sys/kern/uipc_mbuf2.c
@@ -76,7 +76,8 @@ __FBSDID("$FreeBSD$");
#include <sys/mbuf.h>
#include <sys/mutex.h>
-static MALLOC_DEFINE(M_PACKET_TAGS, "mbuf tags", "packet-attached information");
+static MALLOC_DEFINE(M_PACKET_TAGS, MBUF_TAG_MEM_NAME,
+ "packet-attached information");
/* can't call it m_dup(), as freebsd[34] uses m_dup() with different arg */
static struct mbuf *m_dup1(struct mbuf *, int, int, int);
OpenPOWER on IntegriCloud