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

msgsize - Return the total number of bytes in a message

#include <sys/stream.h>
#include <sys/strsun.h>
size_t msgsize(mblk_t *mp);

illumos DDI specific (illumos DDI)

mp

Message to be evaluated.

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

Number of bytes in the message.

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

msgdsize(9F)

STREAMS Programming Guide

June 9, 2004 OmniOS