Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 21:35:50 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Bosko Milekic <bmilekic@technokratis.com>
Cc:        Chad David <davidc@acns.ab.ca>, <current@FreeBSD.ORG>
Subject:   Re: MEXTFREE
Message-ID:  <20011222213422.P7862-100000@gamplex.bde.org>
In-Reply-To: <20011222050320.A77143@technokratis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Dec 2001, Bosko Milekic wrote:

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

But clients that use MEXTFREE (if any) see the function call, so they
need a prototype in scope.

Bruce


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?20011222213422.P7862-100000>