Date: Thu, 21 Mar 2013 16:04:35 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248586 - head/share/man/man9 Message-ID: <201303211604.r2LG4ZTD034734@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Mar 21 16:04:34 2013 New Revision: 248586 URL: http://svnweb.freebsd.org/changeset/base/248586 Log: Document uma_find_refcnt(). Modified: head/share/man/man9/zone.9 Modified: head/share/man/man9/zone.9 ============================================================================== --- head/share/man/man9/zone.9 Thu Mar 21 15:42:41 2013 (r248585) +++ head/share/man/man9/zone.9 Thu Mar 21 16:04:34 2013 (r248586) @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 7, 2012 +.Dd March 21, 2013 .Dt ZONE 9 .Os .Sh NAME @@ -34,6 +34,7 @@ .Nm uma_zalloc_arg , .Nm uma_zfree , .Nm uma_zfree_arg , +.Nm uma_find_refcnt , .Nm uma_zdestroy , .Nm uma_zone_set_max, .Nm uma_zone_get_max, @@ -58,6 +59,8 @@ .Fn uma_zfree "uma_zone_t zone" "void *item" .Ft void .Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg" +.Ft "uint32_t *" +.Fn uma_find_refcnt "uma_zone_t zone" "void *item" .Ft void .Fn uma_zdestroy "uma_zone_t zone" .Ft int @@ -175,6 +178,13 @@ and .Dv dtor functions, respectively. .Pp +If zone was created with +.Dv UMA_ZONE_REFCNT +flag, then pointer to reference counter for an item can be retrieved with +help of the +.Fn uma_find_refcnt +function. +.Pp Created zones, which are empty, can be destroyed using
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303211604.r2LG4ZTD034734>