diff options
author | tmm <tmm@FreeBSD.org> | 2001-08-09 16:01:27 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-08-09 16:01:27 +0000 |
commit | 026a7a5f64579dbb86442f61160f80a9378c3a5a (patch) | |
tree | c76522d669b7764217183c71f79ad0ba6004d90a /share | |
parent | 5af575a982055d177bc81af46741ec68cd8e2fe5 (diff) | |
download | FreeBSD-src-026a7a5f64579dbb86442f61160f80a9378c3a5a.zip FreeBSD-src-026a7a5f64579dbb86442f61160f80a9378c3a5a.tar.gz |
Document zdestroy().
Reviewed by: des
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/Makefile | 1 | ||||
-rw-r--r-- | share/man/man9/zone.9 | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 1fdeb06..f4fce7c 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -322,5 +322,6 @@ MLINKS+=zone.9 zfree.9 MLINKS+=zone.9 zinit.9 MLINKS+=zone.9 zinitna.9 MLINKS+=zone.9 zbootinit.9 +MLINKS+=zone.9 zdestroy.9 .include <bsd.prog.mk> 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 |