msgdsize(D3DK) —
.IX \f4msgdsize\fP(D3DK)
.IX STREAMS messages
NAME
msgdsize − return number of bytes of data in a message
SYNOPSIS
#include <sys/stream.h>
int msgdsize(mblk_t ∗mp);
ARGUMENTS
mpPointer to the message to be evaluated.
DESCRIPTION
msgdsize counts the number of bytes of data in the message pointed to by mp. Only bytes included in message blocks of type M_DATA are included in the count.
RETURN VALUE
The number of bytes of data in the message.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
msgb(D4DK)
EXAMPLE
See insq(D3DK) for an example of msgdsize.
DDI/DKI — STREAMS