From owner-freebsd-arch Wed Feb 5 3:15:27 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 4FC1D37B401 for ; Wed, 5 Feb 2003 03:15:26 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B64843F3F for ; Wed, 5 Feb 2003 03:15:25 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 4FBBF536E; Wed, 5 Feb 2003 12:15:21 +0100 (CET) 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: David Schultz Cc: arch@freebsd.org Subject: Re: New kernel allocation API From: Dag-Erling Smorgrav Date: Wed, 05 Feb 2003 12:15:21 +0100 In-Reply-To: <20030205045103.GB2168@HAL9000.homeunix.com> (David Schultz's message of "Tue, 4 Feb 2003 20:51:03 -0800") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <20030205045103.GB2168@HAL9000.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 David Schultz writes: > BTW, it looks like the KASSERT in kalloc() eliminates the need for > the one in malloc(). Furthermore, there's another KASSERT in > malloc() that could be moved to kalloc(). I know. AT this stage, all the patch does is define the new API and implement it in terms of the old one. I duplicated the KASSERT so I could tailor the panic string to the new API. Note that since malloc() still exists and is not static, the patch maintains binary compatibility (e.g. with modules compiled before the patch was applied). It would therefore have been wrong to modify the behaviour of malloc(). 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