Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2001 14:49:11 -0700
From:      Murray Stokely <murray@FreeBSD.org>
To:        freebsd-doc@FreeBSD.org
Subject:   Diff to zone.9
Message-ID:  <20010904144911.P3246@windriver.com>

next in thread | raw e-mail | index | archive | help
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




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