Chase the sources and document the change of wait to flags, which are

the normal malloc(9) flags.

Submitted by:	arr
This commit is contained in:
Jeroen Ruigrok van der Werven 2002-04-30 16:30:19 +00:00
parent 9a27ef0da4
commit acff84fb0e

@ -38,7 +38,7 @@
.In sys/queue.h
.In vm/uma.h
.Ft void *
.Fn uma_zalloc "uma_zone_t zone, int wait"
.Fn uma_zalloc "uma_zone_t zone, int flags"
.Ft void
.Fn uma_zfree "uma_zone_t zone" "void *item"
.Ft void
@ -81,13 +81,9 @@ To allocate an item from a zone, simply call
.Fn uma_zalloc
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.
.Fa flags
argument to selected flags as documented in
.Xr malloc 9 .
It will return a pointer to an item if successful,
or
.Dv NULL