summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorremko <remko@FreeBSD.org>2008-06-19 18:33:38 +0000
committerremko <remko@FreeBSD.org>2008-06-19 18:33:38 +0000
commit78396ae0b6cc06de68400da5131a967c0fd3ff74 (patch)
treeaf7367a63f5462688f3867380e6f7b71573eb2a8 /share
parentc5bc6314e26838a645dc67654364dc47d5e3bb98 (diff)
downloadFreeBSD-src-78396ae0b6cc06de68400da5131a967c0fd3ff74.zip
FreeBSD-src-78396ae0b6cc06de68400da5131a967c0fd3ff74.tar.gz
Document the _arg versions of the uma_zalloc and uma_zfree functions.
PR: docs/120357 Submitted by: gahr MFC after: 3 days
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/zone.919
1 files changed, 18 insertions, 1 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
index 0782a02..953c6c1 100644
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -25,13 +25,15 @@
.\"
.\" $FreeBSD$
.\"
-.Dd October 2, 2006
+.Dd June 19, 2008
.Dt ZONE 9
.Os
.Sh NAME
.Nm uma_zcreate ,
.Nm uma_zalloc ,
+.Nm uma_zalloc_arg ,
.Nm uma_zfree ,
+.Nm uma_zfree_arg ,
.Nm uma_zdestroy ,
.Nm uma_zone_set_max
.Nd zone allocator
@@ -47,9 +49,13 @@
.Fc
.Ft "void *"
.Fn uma_zalloc "uma_zone_t zone" "int flags"
+.Ft "void *"
+.Fn uma_zalloc_arg "uma_zone_t zone" "void *arg" "int flags"
.Ft void
.Fn uma_zfree "uma_zone_t zone" "void *item"
.Ft void
+.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg"
+.Ft void
.Fn uma_zdestroy "uma_zone_t zone"
.Ft void
.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
@@ -142,6 +148,17 @@ calling
.Fn uma_zfree
with a pointer to the zone and a pointer to the item.
.Pp
+The variations
+.Fn uma_zalloc_arg
+and
+.Fn uma_zfree_arg
+allow to
+specify an argument for the
+.Dv ctor
+and
+.Dv dtor
+functions, respectively.
+.Pp
Created zones,
which are empty,
can be destroyed using
OpenPOWER on IntegriCloud