DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

enableok(D3str)


enableok -- allow a queue to be serviced

Synopsis

   #include <sys/stream.h>
   #include <sys/ddi.h>
   

void enableok(queue_t *q);

Description

The enableok function allows the service routine of the queue pointed to by q to be rescheduled for service. It cancels the effect of a previous use of the noenable(D3str) function on q.

Arguments


q
Pointer to the queue.

Return values

None

Usage

Context

Base or Interrupt.

Synchronization constraints

Does not block.

Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.

The caller cannot have the stream frozen (see freezestr(D3str)) when calling this function.

Examples

The qrestart routine uses two STREAMS functions to re-enable a queue that has been disabled. The enableok function removes the restriction that prevented the queue from being scheduled when a message was enqueued. Then, if there are messages on the queue, it is scheduled by calling qenable(D3str).
   1  void
   2  qrestart(q)
   3	queue_t *q;
   4  {
   5	enableok(q);
   6	if (q->q_first)
   7		qenable(q);
   8  }

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

References

noenable(D3str), qenable(D3str), queue(D4str), srv(D2str)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005