From owner-svn-src-user@FreeBSD.ORG Fri Oct 18 12:35:48 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 79D211FB; Fri, 18 Oct 2013 12:35:48 +0000 (UTC) (envelope-from andre@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 67C412D3F; Fri, 18 Oct 2013 12:35:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9ICZmku039651; Fri, 18 Oct 2013 12:35:48 GMT (envelope-from andre@svn.freebsd.org) Received: (from andre@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9ICZmZ9039646; Fri, 18 Oct 2013 12:35:48 GMT (envelope-from andre@svn.freebsd.org) Message-Id: <201310181235.r9ICZmZ9039646@svn.freebsd.org> From: Andre Oppermann Date: Fri, 18 Oct 2013 12:35:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r256736 - in user/andre/mbuf_staging: kern sys X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 12:35:48 -0000 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);