STREAMS-UX Programmer's Guide (February 2007)

STREAMS Utilities Supported by HP-UX
Appendix B
186
NAME
msgdsize () – Gets the number of data bytes in a message.
SYNOPSIS
#include <sys/stream.h>
int msgdsize (mblk_t *mp);
PARAMETERS
mp
Pointer to the message.
DESCRIPTION
msgdsize() returns the total number of bytes in a message block of type M_DATA.
RETURN VALUES
msgdsize() returns the number of bytes of data in the message.
CONSTRAINTS
msgdsize() can be called from thread or interrupt context. Spinlocks can be held across this call.