Skip site navigation (1)Skip section navigation (2)
Date:      07 Feb 2001 20:57:59 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Julian Elischer <julian@elischer.org>, "Brian F. Feldman" <green@FreeBSD.ORG>, arch@FreeBSD.ORG
Subject:   Re: xucred introduction
Message-ID:  <xzpk872mfjs.fsf@flood.ping.uio.no>
In-Reply-To: Poul-Henning Kamp's message of "Wed, 07 Feb 2001 19:50:04 %2B0100"
References:  <2863.981571804@critter>

next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp <phk@critter.freebsd.dk> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpk872mfjs.fsf>