summaryrefslogtreecommitdiffstats
path: root/share/man/man9/zone.9
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-08-09 16:01:27 +0000
committertmm <tmm@FreeBSD.org>2001-08-09 16:01:27 +0000
commit026a7a5f64579dbb86442f61160f80a9378c3a5a (patch)
treec76522d669b7764217183c71f79ad0ba6004d90a /share/man/man9/zone.9
parent5af575a982055d177bc81af46741ec68cd8e2fe5 (diff)
downloadFreeBSD-src-026a7a5f64579dbb86442f61160f80a9378c3a5a.zip
FreeBSD-src-026a7a5f64579dbb86442f61160f80a9378c3a5a.tar.gz
Document zdestroy().
Reviewed by: des
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r--share/man/man9/zone.915
1 files changed, 15 insertions, 0 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
index 007ea43..bd9558a 100644
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -48,6 +48,8 @@
.Fn zalloc "vm_zone_t z"
.Ft void
.Fn zfree "vm_zone_t z" "void *item"
+.Ft void
+.Fn zdestroy "vm_zone_t z"
.Sh DESCRIPTION
The zone allocator provides an efficient interface for managing
dynamically-sized collections of items of similar size.
@@ -149,6 +151,19 @@ Items are released back to the zone from which they were allocated by
calling
.Fn zfree
with a pointer to the zone and a pointer to the item.
+.Pp
+Zones created with
+.Fn zinit
+or
+.Fn zinitna
+can be destroyed using
+.Fn zdestroy ,
+freeing all memory that was allocated for the zone.
+All items allocated from the zone with
+.Fn zalloc
+must have been freed with
+.Fn zfree
+before.
.Sh RETURN VALUES
The
.Fn zinitna
OpenPOWER on IntegriCloud