summaryrefslogtreecommitdiffstats
path: root/share/man/man9/zone.9
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2002-04-30 14:26:22 +0000
committerasmodai <asmodai@FreeBSD.org>2002-04-30 14:26:22 +0000
commit410ec4b478e37fb41e18d62c1834cfd9d4f84011 (patch)
treea566158e915b02d155900ecb54140e2404763be3 /share/man/man9/zone.9
parent7e4f7cb51e117e6f3a007cce6700ecc56387e1d2 (diff)
downloadFreeBSD-src-410ec4b478e37fb41e18d62c1834cfd9d4f84011.zip
FreeBSD-src-410ec4b478e37fb41e18d62c1834cfd9d4f84011.tar.gz
Document uma_zalloc() behaviour.
Diffstat (limited to 'share/man/man9/zone.9')
-rw-r--r--share/man/man9/zone.917
1 files changed, 15 insertions, 2 deletions
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
index b2581f7..8382a41 100644
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -79,10 +79,23 @@ fields mentioned above.
.Pp
To allocate an item from a zone, simply call
.Fn uma_zalloc
-with a pointer to that zone; it will return a pointer to an item, or
+with a pointer to that zone
+and set the
+.Fa wait
+argument to
+.Dv M_WAITOK
+or
+.Dv M_NOWAIT
+depending on whether or not to block while allocating memory for this zone,
+should we run out.
+It will return a pointer to an item if successful,
+or
.Dv NULL
in the rare case where all items in the zone are in use and the
-allocator is unable to grow the zone.
+allocator is unable to grow the zone
+or when
+.Dv M_NOWAIT
+is specified.
.Pp
Items are released back to the zone from which they were allocated by
calling
OpenPOWER on IntegriCloud