Date: Fri, 18 Oct 2013 12:35:48 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r256736 - in user/andre/mbuf_staging: kern sys Message-ID: <201310181235.r9ICZmZ9039646@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andre Date: Fri Oct 18 12:35:47 2013 New Revision: 256736 URL: http://svnweb.freebsd.org/changeset/base/256736 Log: Internalize mb_free_ext() to kern/kern_mbuf.c. Remove m_gettype() prototype from sys/mbuf.h. Modified: user/andre/mbuf_staging/kern/kern_mbuf.c user/andre/mbuf_staging/sys/mbuf.h Modified: user/andre/mbuf_staging/kern/kern_mbuf.c ============================================================================== --- user/andre/mbuf_staging/kern/kern_mbuf.c Fri Oct 18 12:35:12 2013 (r256735) +++ user/andre/mbuf_staging/kern/kern_mbuf.c Fri Oct 18 12:35:47 2013 (r256736) @@ -297,6 +297,7 @@ static int mb_zinit_pack(void *, int, in static void mb_zfini_pack(void *, int); static void mb_reclaim(void *); +static void mb_free_ext(struct mbuf *) static void *mbuf_jumbo_alloc(uma_zone_t, int, uint8_t *, int); /* @@ -1105,7 +1106,7 @@ m_extaddref(struct mbuf *m, caddr_t buf, * Non-directly-exported function to clean up after mbufs with M_EXT * storage attached to them if the reference count hits 1. */ -void +static void mb_free_ext(struct mbuf *m) { int skipmbuf; Modified: user/andre/mbuf_staging/sys/mbuf.h ============================================================================== --- user/andre/mbuf_staging/sys/mbuf.h Fri Oct 18 12:35:12 2013 (r256735) +++ user/andre/mbuf_staging/sys/mbuf.h Fri Oct 18 12:35:47 2013 (r256736) @@ -478,9 +478,7 @@ struct mbuf { * Mbuf network buffer allocation and construction functions API * as implemented in kern/kern_mbuf.c. */ -void mb_free_ext(struct mbuf *); int m_pkthdr_init(struct mbuf *, int); -int m_gettype(int); int m_extadd(struct mbuf *, caddr_t, u_int, int (*)(struct mbuf *, void *, void *), void *, void *, int, int, int);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310181235.r9ICZmZ9039646>