2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH MIOCPULLUP 9F "Jun 9, 2004"
8 miocpullup \- Prepare the payload of an M_IOCTL message for access
12 #include <sys/stream.h>
13 #include <sys/strsun.h>
17 \fBint\fR \fBmiocpullup\fR(\fBmblk_t *\fR\fImp\fR, \fBsize_t\fR \fIsize\fR);
23 Solaris DDI specific (Solaris DDI).
40 Number of bytes to prepare.
46 The \fBmiocpullup()\fR function prepares the payload of the specified M_IOCTL
47 message for access by ensuring that it consists of at least \fIsize\fR bytes of
51 If the M_IOCTL message is transparent, or its total payload is less than
52 \fIsize\fR bytes, an error is returned. Otherwise, the payload is concatenated
53 as necessary to provide contiguous access to at least \fIsize\fR bytes of data.
54 As a special case, if \fIsize\fR is zero, \fBmiocpullup()\fR returns
55 successfully, even if no payload exists.
59 Zero is returned on success. Otherwise an errno value is returned indicating
64 This function can be called from user, kernel or interrupt context.
68 \fISTREAMS Programming Guide\fR