Go to main content

man pages section 9: DDI and DKI Kernel Functions

Exit Print View

Updated: July 2017
 
 

msgsize(9F)

Name

msgsize - Return the total number of bytes in a message

Synopsis

#include <sys/stream.h>
#include <sys/strsun.h>

size_t msgsize(mblk_t *mp);

Interface Level

Solaris DDI specific (Solaris DDI)

Parameters

mp

Message to be evaluated.

Description

The msgsize() function counts the number of bytes in a message, regardless of the data type of the underlying data blocks.

Return Values

Number of bytes in the message.

Context

This function can be called from user, kernel or interrupt context.

See Also

msgdsize(9F)

STREAMS Programming Guide