Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Feb 2003 13:18:57 -0800
From:      Peter Wemm <peter@wemm.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Jeff Roberson <jroberson@chesapeake.net>, Dag-Erling Smorgrav <des@ofug.org>, arch@FreeBSD.ORG
Subject:   Re: New kernel allocation API 
Message-ID:  <20030205211857.4908E2A89E@canning.wemm.org>
In-Reply-To: <Pine.BSF.4.21.0302051231460.97117-100000@InterJet.elischer.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:
> 
> 
> On Wed, 5 Feb 2003, Peter Wemm wrote:
> 
> > Julian Elischer wrote:
> > > 
> > When I've had to do this in the (distant) past, I've stored the variable
> > size information inside the fixed portion of the structure that was being
> > allocated..   In other situations situations, I used a second size field
> > next to where I stored the pointer.  This wasn't a great burden.
> > 
> > Nostalgia note: Anybody remember AllocMem() and FreeMem()?
> 
> I know it's not a great burdon if you are writing the code.
> It might be a bigger burdon if you are just working with code you 
> don't fully understand, or don't have full access to.

Quite correct.  My choice of wording was poor.  I was trying to get across
the point that when you know what the rules are and all the rest of the
code does it the same, it isn't a big deal to do.

Cheers,
-Peter
--
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


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




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