From owner-freebsd-arch Wed Dec 13 0:53:18 2000 From owner-freebsd-arch@FreeBSD.ORG Wed Dec 13 00:53:16 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 621D137B400; Wed, 13 Dec 2000 00:53:15 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id JAA65356; Wed, 13 Dec 2000 09:50:43 +0100 (CET) (envelope-from des@ofug.org) Sender: des@ofug.org X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Poul-Henning Kamp Cc: Warner Losh , assar@FreeBSD.ORG, Matt Dillon , kris@citusc.usc.edu, arch@FreeBSD.ORG Subject: Re: Safe string formatting in the kernel References: <55081.976661002@critter> From: Dag-Erling Smorgrav Date: 13 Dec 2000 09:50:42 +0100 In-Reply-To: Poul-Henning Kamp's message of "Tue, 12 Dec 2000 23:43:22 +0100" Message-ID: Lines: 13 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp writes: > In message <200012122228.PAA33203@harmony.village.org>, Warner Losh writes: > >If there's a known, realtively small, upper limit, why does allocating > >it dynamically buy you when you could have a static buffer? > I have not reread DES's implementation, but in my design doc you > could initialize an sbuf with your own buffer, for exactly that > reason. Yes. Please read the patch before criticizing it. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message