QPROCSON(9F) Kernel Functions for Drivers QPROCSON(9F)
qprocson, qprocsoff - enable, disable put and service routines
#include <sys/ddi.h> void qprocson
); void qprocsoff
Architecture independent level 1 (DDI/DKI).
Pointer to the RD
side of a streams queue pair.
enables the put and service routines of the driver or
module whose read queue is pointed to by q
. Threads cannot enter the
module instance through the put and service routines while they are
function must be called by the open routine of a driver or
module before returning, and after any initialization necessary for the
proper functioning of the put and service routines.
function must be called before calling put(9F)
, or qwait_sig(9F)
function must be called by the close routine of a driver
or module before returning, and before deallocating any resources
necessary for the proper functioning of the put and service routines. It
also removes the queue's service routines from the service queue, and
blocks until any pending service processing completes.
The module or driver instance is guaranteed to be single-threaded before qprocson()
is called and after qprocsoff()
is called, except for threads
executing asynchronous events such as interrupt handlers and callbacks,
which must be handled separately.
These routines can be called from user, interrupt, or kernel context.
SEE ALSO close(9E)
, qwait_sig(9F) Writing Device Drivers STREAMS Programming Guide
The caller may not have the stream frozen during either of these calls.
January 16, 2006 QPROCSON(9F)