opensolaris man page for msgdsize

Query: msgdsize

OS: opensolaris

Section: 9f

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

msgdsize(9F)						   Kernel Functions for Drivers 					      msgdsize(9F)

NAME
msgdsize - return the number of bytes in a message
SYNOPSIS
#include <sys/stream.h> size_t msgdsize(mblk_t *mp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
mp Message to be evaluated.
DESCRIPTION
The msgdsize() function counts the number of bytes in a data message. Only bytes included in the data blocks of type M_DATA are included in the count.
RETURN VALUES
The number of data bytes in a message, expressed as an integer.
CONTEXT
The msgdsize() function can be called from user, interrupt, or kernel context.
EXAMPLES
See bufcall(9F) for an example that uses msgdsize().
SEE ALSO
bufcall(9F) Writing Device Drivers STREAMS Programming Guide SunOS 5.11 16 Jan 2006 msgdsize(9F)
Related Man Pages
bufcall(9f) - sunos
bufcall(9f) - linux
bufcall(9f) - php
bufcall(9f) - xfree86
bufcall(9f) - suse
Similar Topics in the Unix Linux Community
Prustat throwing error only in zones not in global