From owner-freebsd-arch Wed Feb 7 11:59:53 2001 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 1A31237B503; Wed, 7 Feb 2001 11:59:35 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id UAA63934; Wed, 7 Feb 2001 20:57:59 +0100 (CET) (envelope-from 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: Julian Elischer , "Brian F. Feldman" , arch@FreeBSD.ORG Subject: Re: xucred introduction References: <2863.981571804@critter> From: Dag-Erling Smorgrav Date: 07 Feb 2001 20:57:59 +0100 In-Reply-To: Poul-Henning Kamp's message of "Wed, 07 Feb 2001 19:50:04 +0100" Message-ID: Lines: 15 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: > All I want is a layout version number as the first element in > the structure if it is in any way sanctioned for use from userland. Some structures (specifically, those that are to be stored in zones) *must* start with two pointers to their own type. This is arguably a design flaw in the zone allocator. One possible fix is to add an extra argument to zinit(), zinitna() and zbootinit() to specify the offset of these pointers within the structure; another is to have the zone allocator prepend those pointers itself, so they don't need to be in the structure at all. 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