Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 05:03:20 -0500
From:      Bosko Milekic <bmilekic@technokratis.com>
To:        Chad David <davidc@acns.ab.ca>
Cc:        current@FreeBSD.ORG
Subject:   Re: MEXTFREE
Message-ID:  <20011222050320.A77143@technokratis.com>
In-Reply-To: <20011222005416.A61391@colnta.acns.ab.ca>; from davidc@acns.ab.ca on Sat, Dec 22, 2001 at 12:54:16AM -0700
References:  <20011222005416.A61391@colnta.acns.ab.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011222050320.A77143>