From owner-freebsd-doc Tue Sep 4 14:43:38 2001 Delivered-To: freebsd-doc@freebsd.org Received: from mao.stokely.org (mao.stokely.org [65.84.64.228]) by hub.freebsd.org (Postfix) with ESMTP id 07D6A37B408 for ; Tue, 4 Sep 2001 14:43:36 -0700 (PDT) Received: by mao.stokely.org (Postfix, from userid 2074) id CF66A4B65E; Tue, 4 Sep 2001 14:49:11 -0700 (PDT) Date: Tue, 4 Sep 2001 14:49:11 -0700 From: Murray Stokely To: freebsd-doc@FreeBSD.org Subject: Diff to zone.9 Message-ID: <20010904144911.P3246@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-GPG-Key-ID: 1024D/0E451F7D X-GPG-Key-Fingerprint: E2CA 411D DD44 53FD BB4B 3CB5 B4D7 10A2 0E45 1F7D Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Does this diff look correct? des reviewed the content so if the mdoc is ok I'd like to commit this and close docs/26006. - Murray Index: zone.9 =================================================================== RCS file: /home/ncvs/src/share/man/man9/zone.9,v retrieving revision 1.5 diff -u -r1.5 zone.9 --- zone.9 2001/08/10 10:53:10 1.5 +++ zone.9 2001/09/04 21:41:52 @@ -63,18 +63,18 @@ aren't, and provides functions for allocating items from the zone and for releasing them back (which makes them available for later use). .Pp -The zone allocator stores state information inside the items proper, -so structures that will be managed by the zone allocator must reserve -two pointers at the very beginning for internal use by the zone -allocator, as follows: -.Bd -literal -struct my_item { - struct my_item *z_rsvd1; - struct my_item *z_rsvd2; - /* rest of structure */ -}; -.Ed +While an item is not in use, the first sizeof(void *) bytes are used +for a pointer to another available item. +When allocated, all of the item's space is available, except with +.Dv INVARIANTS +defined, where the second sizeof(void *) bytes are used for sanity +checks, and we would get a panic trying to free the item if those bytes +were somehow changed to +.Dv ZENTRY_FREE . .Pp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message