SVR5 and SCO OpenServer 5
msgdsize(D3str)
msgdsize --
return number of bytes of data in a message
Synopsis
#include <sys/stream.h>
#include <sys/ddi.h>
int msgdsize(mblk_t *mp);
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(D7str)
are included in the count.
Arguments
mp-
Pointer to the message to be evaluated.
Return values
The number of bytes of data in the message.
Usage
Context
Base or Interrupt.
Synchronization constraints
Does not block.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
Examples
See
insq(D3str)
for an example of msgdsize.
Hardware applicability
All
Version applicability
ddi:
1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp
oddi:
1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
References
msgb(D4str)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005