'\"macro stdmacro
.if n .pH ddi_dki.rmsetwant @(#)rmsetwant	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} rmsetwant D3DK "" "DDI/DKI" "\&"
.if \nX=1 .ds x} rmsetwant D3DK "" "DDI/DKI"
.if \nX=2 .ds x} rmsetwant D3DK "" "\&"
.if \nX=3 .ds x} rmsetwant "" "" "\&"
.TH \*(x}
.IX \f4rmsetwant\fP(D3DK)
.SH NAME
\f4rmsetwant\f1 \- set the map's wait flag for a wakeup
.SH SYNOPSIS
\f4#include <sys/map.h>
\f4#include <sys/ddi.h>
.sp 0.5
void rmsetwant(struct map *\f2map_p\f4);\f1 
.SH ARGUMENTS
.RS 0n 10
.IP "\f2map_p\f1" 10n
Pointer to the map the driver is waiting for.
.RE
.SH DESCRIPTION
The \f4rmsetwant\f1 function increments the counter on the wait flag
of the map pointed to by \f2map_p\f1.  It is typically called from the
driver's \f4read\f1 or \f4write\f1 routine after an unsuccessful
attempt to allocate space from the map using \f4rmalloc\f1(D3DK).
.P
Typically, a driver will sleep on \f4map_p\f1 after calling
\f4rmsetwant\f1.  When the \f4rmfree\f1 function returns space to
the map, it calls \f4wakeup\f1(D3DK).
.SH RETURN VALUE
None
.SH LEVEL
Base only
.SH SEE ALSO
.na
\f4rmalloc\f1(D3DK),
\f4rmfree\f1(D3DK),
\f4rminit\f1(D3DK),
\f4rmwant\f1(D3DK),
\f4map\f1(D4DK)
.ad
.SH EXAMPLE
See \f4rmalloc\f1(D3DK).
