From owner-freebsd-current Tue Mar 12 17:45:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 0598437B41A for ; Tue, 12 Mar 2002 17:45:03 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id RAA40337; Tue, 12 Mar 2002 17:39:36 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g2D1cqh68436; Tue, 12 Mar 2002 17:38:52 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200203130138.g2D1cqh68436@arch20m.dellroad.org> Subject: Re: Adding realloc() In-Reply-To: <20020313000622.GA32410@elvis.mu.org> "from Alfred Perlstein at Mar 12, 2002 04:06:22 pm" To: Alfred Perlstein Date: Tue, 12 Mar 2002 17:38:52 -0800 (PST) Cc: freebsd-current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein writes: > > > > I've had the need for a realloc() in the kernel several times > > > > before and am having it once again. Finally figured it's time to > > > > do something about it. > > > > > > Where is the update to malloc(9)? What about reallocf? > > > > Good points, thanks.. try this one instead. > > That looks ok, afaik you could do some vm tricks to avoid having > to malloc/free when doing realloc()'s that are larger than PAGE_SIZE. Yeah I was wondering about that & how hard it would be. That'd be the next step I guess.. thanks for the comments. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message