summaryrefslogtreecommitdiffstats
path: root/share/man/man9/zone.9
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2010-10-16 04:41:45 +0000
committerlstewart <lstewart@FreeBSD.org>2010-10-16 04:41:45 +0000
commit4171305db05f156ab87a3defcf51d7f72e73552e (patch)
tree74db4911c126c78f6a9eca1da53dccbe39d2d84b /share/man/man9/zone.9
parent2770ad22da37ff641831366d79c70e90f0c0c858 (diff)
downloadFreeBSD-src-4171305db05f156ab87a3defcf51d7f72e73552e.zip
FreeBSD-src-4171305db05f156ab87a3defcf51d7f72e73552e.tar.gz
Change uma_zone_set_max to return the effective value of "nitems" after
rounding. The same value can also be obtained with uma_zone_get_max, but this change avoids a caller having to make two back-to-back calls. Sponsored by: FreeBSD Foundation Reviewed by: gnn, jhb
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r--share/man/man9/zone.98
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
index 01f6497..304b7f0 100644
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -59,7 +59,7 @@
.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg"
.Ft void
.Fn uma_zdestroy "uma_zone_t zone"
-.Ft void
+.Ft int
.Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
.Ft int
.Fn uma_zone_get_max "uma_zone_t zone"
@@ -185,9 +185,9 @@ that can be allocated to
The
.Fa nitems
argument specifies the requested upper limit number of items.
-The effective limit may end up being higher than requested, as the
-implementation will round up to ensure all memory pages allocated to the zone
-are utilised to capacity.
+The effective limit is returned to the caller, as it may end up being higher
+than requested due to the implementation rounding up to ensure all memory pages
+allocated to the zone are utilised to capacity.
The limit applies to the total number of items in the zone, which includes
allocated items, free items and free items in the per-cpu caches.
On systems with more than one CPU it may not be possible to allocate
OpenPOWER on IntegriCloud