1mioc2ack(9F) Kernel Functions for Drivers mioc2ack(9F)
2
3
4
6 mioc2ack - Convert an M_IOCTL message to an M_IOCACK message
7
9 #include <sys/stream.h>
10 #include <sys/strsun.h>
11
12
13
14 void mioc2ack(mblk_t *mp, mblk_t *dp, size_t count, int rval);
15
16
18 Solaris DDI specific (Solaris DDI).
19
21 mp M_IOCTL message.
22
23
24 dp Payload to associate with M_IOCACK message.
25
26
27 count Value to set the ioc_count of the iocblk(9S) to.
28
29
30 rval Value to set the ioc_rval of the iocblk(9S) to.
31
32
34 The mioc2ack() function converts an M_IOCTL message into an M_IOCACK
35 message using the supplied arguments.
36
37
38 To convert the message, mioc2ack() changes the message type to
39 M_IOCACK, sets the ioc_count and ioc_rval members of the iocblk(9S)
40 associated with mp to the passed-in values, and clears the ioc_error
41 field. Further, it frees any message blocks chained off of mp->b_cont
42 and resets mp->b_cont to dp. Finally, if dp is not NULL, mioc2ack()
43 resets dp->b_wptr to be dp->b_rptr + count (that is, it sets dp to be
44 exactly count bytes in length).
45
47 None.
48
50 This function can be called from user, kernel or interrupt context.
51
53 miocack(9F), miocnak(9F), iocblk(9S)
54
55
56 STREAMS Programming Guide
57
58
59
60SunOS 5.11 9 June 2004 mioc2ack(9F)