'\"macro stdmacro
.if n .pH ddi_dki.enableok @(#)enableok	40.6 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} enableok D3DK "STREAMS" "DDI/DKI" "\&"
.if \nX=1 .ds x} enableok D3DK "STREAMS" "DDI/DKI"
.if \nX=2 .ds x} enableok D3DK "" "\&"
.if \nX=3 .ds x} enableok "" "" "\&"
.TH \*(x}
.IX "\f4enableok\fP(D3DK)"
.IX "STREAMS message queues"
.SH NAME
\f4enableok\f1 \- reschedule a queue for service
.SH "SYNOPSIS"
.nf
.na
\f4#include <sys/stream.h>
#include <sys/ddi.h>
.sp 0.5
void enableok(queue_t *\f2q\f4);\f1
.ad
.fi
.SH "ARGUMENT" 
.RS 0n 10
.IP "\f2q\f1" 10n
A pointer to the queue to be rescheduled.
.RE
.SH DESCRIPTION
The \f4enableok\f1 function allows queue \f2q\f1 to be rescheduled for
service.  It cancels the effect of a previous use of the
\f4noenable\f1(D3DK) function on \f2q\f1 by turning off the \f4QNOENB\f1
flag in the queue.
.SH "RETURN VALUE" 
None
.SH LEVEL
Base or Interrupt
.SH "SEE ALSO" 
\f2BCI Driver Development Guide\f1, Chapter 7, ``STREAMS''
.P
.na
\f4noenable\f1(D3DK),
\f4qenable\f1(D3DK)
.ad
.SH EXAMPLE
.IX "\f4enableok\fP(D3DK), example"
.IX "\f4qenable\fP(D3DK), example"
.IX "\f4queue\fP(D4DK), example"
.P
The \f4qrestart\f1 routine uses two STREAMS functions
to restart a queue that has been
disabled.  The \f4enableok\f1 function turns off the \f4QNOENB\f1 flag,
allowing the \f4qenable\f1(D3DK) function to schedule the queue for immediate
processing.
.ne 4
.P
.nf
.ft 4
.ps 7
 1  void
 2  qrestart(rdwr_q)
 3      register queue_t *rdwr_q;
 4
 5  {
 6	enableok(rdwr_q);
 7	/* re-enable a queue that has been disabled */
 8	(void) qenable(rdwr_q);
 9
10  }
.ps
.ft 1
.fi
.P
.FG "enableok \- restart a queue"
