Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 1996 11:47:03 -0500
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Mark Tinguely <tinguely@plains.nodak.edu>
Cc:        freebsd-current@FreeBSD.org
Subject:   -current mbuf reference function
Message-ID:  <9611121647.AA09956@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199611121610.KAA13353@plains.nodak.edu>
References:  <199611121610.KAA13353@plains.nodak.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 12 Nov 1996 10:10:20 -0600 (CST), Mark Tinguely <tinguely@plains.nodak.edu> said:

> and even worse the MCLFREE macros in sys/mbuf.h only uses:

> 	 --mclrefcnt[mtocl(p)] == 0

> to decrement the reference count and check to see if it time to release.

This is correct.  It is an error to call MCLFREE if there is a free
function (m_ext.ext_free) set.  The calling convention could be a lot
better (I'd like to have it take a pointer to the mbuf rather than the
buffer pointer and size parameters)....

> I think either a increment/decrement flag is needed to m_ext.ext_ref, or an
> additional decrement function is needed

Nope, that function is m_ext.ext_free.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, ANA, or NSA|                     - Susan Aglukark and Chad Irschick



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