STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
188
NAME
noenable () – Prevents a queue from being scheduled.
SYNOPSIS
#include <sys/stream.h>
void noenable (queue_t *q);
PARAMETERS
q
Pointer to a queue.
DESCRIPTION
This function prevents the scheduling of the service procedure for the queue pointed by
q
. The noenable()
does not prevent the queue’s service procedure from being scheduled when a high priority message is
enqueued, or by an explicit call to qenable.
enableok() can be used to schedule the service procedure, if it was previously disabled via noenable().
RETURN VALUES
None
CONSTRAINTS
noenable() can be called from thread or interrupt context. Only spinlocks of STREAMS/UX user lock order
can be held across this call.