diff options
author | Remko Lodder <remko@FreeBSD.org> | 2008-06-19 18:33:38 +0000 |
---|---|---|
committer | Remko Lodder <remko@FreeBSD.org> | 2008-06-19 18:33:38 +0000 |
commit | 6a4c41d1bbd694fe7db2cb2842bb83a3b9c6d5c2 (patch) | |
tree | af7367a63f5462688f3867380e6f7b71573eb2a8 /share/man/man9/zone.9 | |
parent | 23c8064e660c02bc5b5ea546694f14a381201bb0 (diff) | |
download | src-6a4c41d1bbd694fe7db2cb2842bb83a3b9c6d5c2.tar.gz src-6a4c41d1bbd694fe7db2cb2842bb83a3b9c6d5c2.zip |
Document the _arg versions of the uma_zalloc and uma_zfree functions.
PR: docs/120357
Submitted by: gahr
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=179880
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r-- | share/man/man9/zone.9 | 19 |
1 files changed, 18 insertions, 1 deletions
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 |