summaryrefslogtreecommitdiffstats
path: root/share/man/man9/zone.9
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-12-14 19:19:31 +0000
committerjulian <julian@FreeBSD.org>2001-12-14 19:19:31 +0000
commit9e5d1d1b57283edd9e76d3421f9e8687b9d57a1b (patch)
treeee780b0669a76a8ab206894cc46bcaf0aec34d1b /share/man/man9/zone.9
parentf7af5c6f927c1530abc7ebc578a2dc820dcdfe7e (diff)
downloadFreeBSD-src-9e5d1d1b57283edd9e76d3421f9e8687b9d57a1b.zip
FreeBSD-src-9e5d1d1b57283edd9e76d3421f9e8687b9d57a1b.tar.gz
Make the man page reflec t the code a bit better.
Specifically, note the condition of the memory on initial and subsequent allocations is different.
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r--share/man/man9/zone.913
1 files changed, 11 insertions, 2 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
index 1cd18ca..68393d2 100644
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -63,8 +63,11 @@ The zone allocator keeps track of which items are in use and which
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
+The zone allocator stores state information inside the items proper
+while they are not allocated,
+so structures that will be managed by the zone allocator
+and wish to use the type stable property of zones by leaving some fields
+pre-filled between allocations, must reserve
two pointers at the very beginning for internal use by the zone
allocator, as follows:
.Bd -literal
@@ -75,6 +78,12 @@ struct my_item {
};
.Ed
.Pp
+Alternatively they should assume those entries corrupted
+after each allocation. After the first allocation of an item,
+it will have been cleared to zeroes, however subsequent allocations
+will retain the contents as of the last free, with the exception of the
+fields mentioned above.
+.Pp
Zones are created in one of two fashions, depending how far along the
boot process is.
.Pp
OpenPOWER on IntegriCloud