1miocpullup(9F) Kernel Functions for Drivers miocpullup(9F)
2
3
4
6 miocpullup - Prepare the payload of an M_IOCTL message for access
7
9 #include <sys/stream.h>
10 #include <sys/strsun.h>
11
12
13
14 int miocpullup(mblk_t *mp, size_t size);
15
16
18 Solaris DDI specific (Solaris DDI).
19
21 mp M_IOCTL message.
22
23
24 size Number of bytes to prepare.
25
26
28 The miocpullup() function prepares the payload of the specified M_IOCTL
29 message for access by ensuring that it consists of at least size bytes
30 of data.
31
32
33 If the M_IOCTL message is transparent, or its total payload is less
34 than size bytes, an error is returned. Otherwise, the payload is con‐
35 catenated as necessary to provide contiguous access to at least size
36 bytes of data. As a special case, if size is zero, miocpullup() returns
37 successfully, even if no payload exists.
38
40 Zero is returned on success. Otherwise an errno value is returned indi‐
41 cating the problem.
42
44 This function can be called from user, kernel or interrupt context.
45
47 STREAMS Programming Guide
48
49
50
51SunOS 5.11 9 June 2004 miocpullup(9F)