STREAMS-UX Programmer's Guide (February 2007)
STREAMS Utilities Supported by HP-UX
Appendix B
158
NAME
canenable () – Test whether queue can be enabled for running service procedure.
SYNOPSIS
#include <sys/stream.h>
int canenable (queue_t *q);
PARAMETERS
q
Pointer to a queue.
DESCRIPTION
This function checks whether a service procedure for the specified queue can be scheduled for running.
RETURN VALUES
It returns 1 if the queue has not been disabled from running a service procedure and returns 0 if the queue is
disabled.
CONSTRAINTS
canenable() can be called from thread or interrupt context. Only spinlocks of STREAMS/UX user lock order
can be held across this call.