summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2004-10-09 13:25:19 +0000
committerglebius <glebius@FreeBSD.org>2004-10-09 13:25:19 +0000
commit0c7bb9f633cd6804fdc80dc3bf4b9e6d3781f85b (patch)
tree2147d29faa0ab375bc3aab3bb1f570a107256410 /sys/sys/mbuf.h
parent80780fc5fc83abf44c53f3c8c728b4e4037cf24d (diff)
downloadFreeBSD-src-0c7bb9f633cd6804fdc80dc3bf4b9e6d3781f85b.zip
FreeBSD-src-0c7bb9f633cd6804fdc80dc3bf4b9e6d3781f85b.tar.gz
Remove inlined m_tag_free(). Rename _m_tag_free() to m_tag_free()
and make it visible (same way as in OpenBSD). Describe usage in manpage. This change is useful for creating custom free methods, which call default free method at their end. While here, make malloc declaration for mbuf tags more informative. Approved by: julian (mentor), sam MFC after: 1 month
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 78053e9..990521f 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -648,6 +648,7 @@ struct mbuf *m_uiotombuf(struct uio *, int, int);
struct m_tag *m_tag_alloc(u_int32_t, int, int, int);
void m_tag_delete(struct mbuf *, struct m_tag *);
void m_tag_delete_chain(struct mbuf *, struct m_tag *);
+void m_tag_free(struct m_tag *);
struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *);
struct m_tag *m_tag_copy(struct m_tag *, int);
int m_tag_copy_chain(struct mbuf *, struct mbuf *, int);
@@ -678,15 +679,6 @@ m_tag_setup(struct m_tag *t, u_int32_t cookie, int type, int len)
}
/*
- * Reclaim resources associated with a tag.
- */
-static __inline void
-m_tag_free(struct m_tag *t)
-{
- (*t->m_tag_free)(t);
-}
-
-/*
* Return the first tag associated with an mbuf.
*/
static __inline struct m_tag *
OpenPOWER on IntegriCloud