From owner-cvs-all Thu Jan 2 13:16:51 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A82A737B401; Thu, 2 Jan 2003 13:16:50 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65E4443ED8; Thu, 2 Jan 2003 13:16:50 -0800 (PST) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h02LGofh033187; Thu, 2 Jan 2003 13:16:50 -0800 (PST) (envelope-from gallatin@repoman.freebsd.org) Received: (from gallatin@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h02LGo2N033186; Thu, 2 Jan 2003 13:16:50 -0800 (PST) Message-Id: <200301022116.h02LGo2N033186@repoman.freebsd.org> From: Andrew Gallatin Date: Thu, 2 Jan 2003 13:16:50 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_mbuf.c src/sys/sys mbuf.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gallatin 2003/01/02 13:16:50 PST Modified files: sys/kern subr_mbuf.c sys/sys mbuf.h Log: o Introduce a new external mbuf type, EXT_EXTREF. o Allow callers of m_extadd() to allocate their own reference m_ext.ref_cnt pointer, rather than having the mbuf system allocate it with a malloc() in the critical path. This speeds m_extadd() up, and also simplifies locking (malloc() may need Giant). A driver or subsystem wishing to take use its own ref counter must initialize m_ext.ref_cnt to point to its ref counter prior to calling m_extadd(), and it must use EXT_EXTREF as its external type. Eg: m->m_ext.ref_cnt = my_ref_cnt_ptr; m_extadd(.....,EXT_EXTREF); Reviewed by: bosko Revision Changes Path 1.35 +8 -3 src/sys/kern/subr_mbuf.c 1.110 +1 -0 src/sys/sys/mbuf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message