MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                         qprocson(9F)



NAME
     qprocson, qprocsoff - enable, disable put and  service  rou-
     tines

SYNOPSIS
     #include 
     #include 



     void qprocson(queuet *q);


     void qprocsoff(queuet *q);


INTERFACE LEVEL
     Architecture independent level 1 (DI/DKI).

PARAMETERS
     q    Pointer to the RD side of a STREAMS queue pair.


DESCRIPTION
     The qprocson() 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 disabled.


     The qprocson() function must be called by the  open  routine
     of  a  driver or module before returning, and after any ini-
     tialization necessary for the proper functioning of the  put
     and service routines.


     The  qprocson()  function  must  be  called  before  calling
     put(9F), putnext(9F), qbufcall(9F), qtimeout(9F), qwait(9F),
     or qwaitsig(9F).


     The qprocsoff() function must be called by the close routine
     of  a  driver or module before returning, and before deallo-
     cating 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



SunOS 5.11          Last change: 16 Jan 2006                    1






Kernel Functions for Drivers                         qprocson(9F)



     such as interrupt handlers and callbacks, which must be han-
     dled separately.

CONTEXT
     These routines can be called from user, interrupt, or kernel
     context.

SEE ALSO
     close(9E), open(9E), put(9E), srv(9E), put(9F), putnext(9F),
     qbufcall(9F), qtimeout(9F), qwait(9F), qwaitsig(9F)


     Writing Device Drivers


     STREAMS Programming Guide

NOTES
     The caller may not have the STREAM frozen during  either  of
     these calls.



































SunOS 5.11          Last change: 16 Jan 2006                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™