MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                         mioc2ack(9F)



NAME
     mioc2ack - Convert an MIOCTL message to an MIOCACK message

SYNOPSIS
     #include 
     #include 



     void mioc2ack(mblkt *mp, mblkt *dp, sizet count, int rval);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).

PARAMETERS
     mp       MIOCTL message.


     dp       Payload to associate with MIOCACK message.


     count    Value to set the ioccount of the iocblk(9S) to.


     rval     Value to set the iocrval of the  iocblk(9S) to.


DESCRIPTION
     The mioc2ack() function converts an MIOCTL message into  an
     MIOCACK message using the supplied arguments.


     To convert the message, mioc2ack() changes the message  type
     to  MIOCACK, sets the ioccount and iocrval members of the
     iocblk(9S) associated with mp to the passed-in  values,  and
     clears  the  iocerror  field. Further, it frees any message
     blocks chained off of mp->bcont and  resets  mp->bcont  to
     dp. Finally, if dp is not NUL, mioc2ack() resets dp->bwptr
     to be dp->brptr ] count (that is, it sets dp to be  exactly
     count bytes in length).

RETURN VALUES
     None.

CONTEXT
     This function can be called from user, kernel  or  interrupt
     context.

SEE ALSO
     miocack(9F), miocnak(9F), iocblk(9S)




SunOS 5.11          Last change: 9 June 2004                    1






Kernel Functions for Drivers                         mioc2ack(9F)



     STREAMS Programming Guide






















































SunOS 5.11          Last change: 9 June 2004                    2



OpenSolaris man pages main menu

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