Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2000 14:01:25 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Bosko Milekic <bmilekic@technokratis.com>
Cc:        net@FreeBSD.ORG
Subject:   Re: Abusing m_ext for a worthy goal.
Message-ID:  <20001211140125.M16205@fw.wintelcom.net>
In-Reply-To: <Pine.BSF.4.21.0012111636010.21986-100000@jehovah.technokratis.com>; from bmilekic@technokratis.com on Mon, Dec 11, 2000 at 04:37:15PM -0500
References:  <20001211121354.E16205@fw.wintelcom.net> <Pine.BSF.4.21.0012111636010.21986-100000@jehovah.technokratis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Bosko Milekic <bmilekic@technokratis.com> [001211 13:36] wrote:
> 
> On Mon, 11 Dec 2000, Alfred Perlstein wrote:
> 
> > Hmm, I think instead of doing this sort of abuse, what I should be
> > doing is allocating an mbuf header, then allocating a mbuf cluster
> > then attaching them using the MEXTADD() macro.
> 
> 	Alfred, I'm surprised you're pointing this out when in my first post,
>   the code example does exactly this, minus the mbuf allocation. :-)

Well i understand that, I just didn't want to put all that code in
when a small abstraction would give a good api for other code that
might do this.

> > I'm going to look at the code to see if there's a clean way to do this,
> > if not can you provide an interface for allocating and free'ing
> > clusters by themselves?

:)

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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