From owner-freebsd-arch Wed Feb 5 11:26:41 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 A9EBC37B438 for ; Wed, 5 Feb 2003 11:26:39 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5D7543F93 for ; Wed, 5 Feb 2003 11:26:37 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id B9AC25371; Wed, 5 Feb 2003 20:26:34 +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: Julian Elischer Cc: Jeff Roberson , Peter Wemm , arch@FreeBSD.ORG Subject: Re: New kernel allocation API From: Dag-Erling Smorgrav Date: Wed, 05 Feb 2003 20:26:34 +0100 In-Reply-To: (Julian Elischer's message of "Wed, 5 Feb 2003 10:43:38 -0800 (PST)") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: 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 Julian Elischer writes: > I know several consumers where the size is not known or would be > expensive to calculate on free. Well then, void kfree(void *va, size_t size, struct malloc_type *type); void kfree_nosize(void *va, struct malloc_type *type); where the former checks that the size is correct, while the latter doesn't. 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