svn commit: r256736 - in user/andre/mbuf_staging: kern sys

Andre Oppermann andre at FreeBSD.org
Fri Oct 18 12:35:48 UTC 2013


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);


More information about the svn-src-user mailing list