From owner-freebsd-current Tue Mar 12 16: 6:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id B8CAE37B404 for ; Tue, 12 Mar 2002 16:06:22 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 9858DAE24F; Tue, 12 Mar 2002 16:06:22 -0800 (PST) Date: Tue, 12 Mar 2002 16:06:22 -0800 From: Alfred Perlstein To: Archie Cobbs Cc: freebsd-current@freebsd.org Subject: Re: Adding realloc() Message-ID: <20020313000622.GA32410@elvis.mu.org> References: <20020312215305.GL92565@elvis.mu.org> <200203122237.g2CMbbY67802@arch20m.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200203122237.g2CMbbY67802@arch20m.dellroad.org> User-Agent: Mutt/1.3.27i 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 * Archie Cobbs [020312 14:45] wrote: > 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. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message