From 6a4c41d1bbd694fe7db2cb2842bb83a3b9c6d5c2 Mon Sep 17 00:00:00 2001 From: Remko Lodder Date: Thu, 19 Jun 2008 18:33:38 +0000 Subject: [PATCH] Document the _arg versions of the uma_zalloc and uma_zfree functions. PR: docs/120357 Submitted by: gahr MFC after: 3 days --- share/man/man9/zone.9 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9 index 0782a0277dbb..953c6c1a831f 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