summaryrefslogtreecommitdiffstats
path: root/share/man/man9/zone.9
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-11-29 11:39:20 +0000
committerru <ru@FreeBSD.org>2002-11-29 11:39:20 +0000
commit6d3a461a4f20776be1a83de2eada39cb152efd48 (patch)
treee178090675cafc86fcb97bb414bb098780299953 /share/man/man9/zone.9
parentda32bc58a0c07d9ab5fab6a3dc0c10e746ac2dbd (diff)
downloadFreeBSD-src-6d3a461a4f20776be1a83de2eada39cb152efd48.zip
FreeBSD-src-6d3a461a4f20776be1a83de2eada39cb152efd48.tar.gz
mdoc(7) police: scheduled sweep.
Approved by: re
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r--share/man/man9/zone.923
1 files changed, 16 insertions, 7 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
index 48309b6..43076b9 100644
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -101,9 +101,11 @@ the uma subsystem at the time of the call to
.Fn uma_zalloc
and
.Fn uma_zfree
-respectively. Their purpose is to provide hooks for initializing or
+respectively.
+Their purpose is to provide hooks for initializing or
destroying things that need to be done at the time of the allocation
-or release of a resource. A good useage for the
+or release of a resource.
+A good useage for the
.Fa ctor
and
.Fa dtor
@@ -115,13 +117,20 @@ The
and
.Fa fini
arguments are used to optimize the allocation of
-objects from the zone. They are called by the uma subsystem whenever
+objects from the zone.
+They are called by the uma subsystem whenever
it needs to allocate or free several items to satisfy requests or memory
-pressure. A good use for the uminit and fini callbacks might be to
-initialize and destroy mutexes contained within the object. This would
+pressure.
+A good use for the
+.Fa uminit
+and
+.Fa fini
+callbacks might be to
+initialize and destroy mutexes contained within the object.
+This would
allow one to re-use already initialized mutexes when an object is returned
-from the uma subsystem's object cache. They are not called on each call
-to
+from the uma subsystem's object cache.
+They are not called on each call to
.Fn uma_zalloc
and
.Fn uma_zfree
OpenPOWER on IntegriCloud