From owner-freebsd-arch Wed Feb 5 13:19:14 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E8F037B401 for ; Wed, 5 Feb 2003 13:19:13 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8093643F79 for ; Wed, 5 Feb 2003 13:18:57 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 4908E2A89E; Wed, 5 Feb 2003 13:18:57 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Julian Elischer Cc: Jeff Roberson , Dag-Erling Smorgrav , arch@FreeBSD.ORG Subject: Re: New kernel allocation API In-Reply-To: Date: Wed, 05 Feb 2003 13:18:57 -0800 From: Peter Wemm Message-Id: <20030205211857.4908E2A89E@canning.wemm.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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