Date: Wed, 5 Feb 2003 12:34:32 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Peter Wemm <peter@wemm.org> Cc: Jeff Roberson <jroberson@chesapeake.net>, Dag-Erling Smorgrav <des@ofug.org>, arch@FreeBSD.ORG Subject: Re: New kernel allocation API Message-ID: <Pine.BSF.4.21.0302051231460.97117-100000@InterJet.elischer.org> In-Reply-To: <20030205201534.4409C2A89E@canning.wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. I added (many years ago) enough info to the external mbuf info so that it could cope with this (I don't know if it still does but I did have a field for "allocated buffer size"). > > 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 > 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?Pine.BSF.4.21.0302051231460.97117-100000>