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 MSGSIZE 9F "Jun 9, 2004"
8 msgsize \- Return the total number of bytes in a message
12 #include <sys/stream.h>
13 #include <sys/strsun.h>
17 \fBsize_t\fR \fBmsgsize\fR(\fBmblk_t *\fR\fImp\fR);
23 Solaris DDI specific (Solaris DDI)
31 Message to be evaluated.
37 The \fBmsgsize()\fR function counts the number of bytes in a message,
38 regardless of the data type of the underlying data blocks.
42 Number of bytes in the message.
46 This function can be called from user, kernel or interrupt context.
53 \fISTREAMS Programming Guide\fR