From owner-freebsd-current Sat Dec 22 2: 1:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from technokratis.com (modemcable099.144-201-24.mtl.mc.videotron.ca [24.201.144.99]) by hub.freebsd.org (Postfix) with ESMTP id 453EE37B405 for ; Sat, 22 Dec 2001 02:01:25 -0800 (PST) Received: (from bmilekic@localhost) by technokratis.com (8.11.4/8.11.3) id fBMA3Lh77224; Sat, 22 Dec 2001 05:03:21 -0500 (EST) (envelope-from bmilekic) Date: Sat, 22 Dec 2001 05:03:20 -0500 From: Bosko Milekic To: Chad David Cc: current@FreeBSD.ORG Subject: Re: MEXTFREE Message-ID: <20011222050320.A77143@technokratis.com> References: <20011222005416.A61391@colnta.acns.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011222005416.A61391@colnta.acns.ab.ca>; from davidc@acns.ab.ca on Sat, Dec 22, 2001 at 12:54:16AM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Dec 22, 2001 at 12:54:16AM -0700, Chad David wrote: > MEXTFREE results in a call to _mext_free() which is only defined within > subr_mbuf.c, and is not static. Should the prototype be moved into > sys/mbuf.h, or should MEXTFREE be moved into subr_mbuf.c, or is it ok > like this? It should stay like this. The easy (macro) case deals with only the reference count issue. We only call the function if we really have to free the object (i.e. ref count is dropped to zero). > Thanks. > > -- > Chad David davidc@acns.ab.ca > ACNS Inc. Calgary, Alberta Canada -- Bosko Milekic bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message