1msgsize(9F)              Kernel Functions for Drivers              msgsize(9F)
2
3
4

NAME

6       msgsize - Return the total number of bytes in a message
7

SYNOPSIS

9       #include <sys/stream.h>
10       #include <sys/strsun.h>
11
12
13
14       size_t msgsize(mblk_t *mp);
15
16

INTERFACE LEVEL

18       Solaris DDI specific (Solaris DDI)
19

PARAMETERS

21       mp    Message to be evaluated.
22
23

DESCRIPTION

25       The msgsize() function counts the number of bytes in a message, regardā€
26       less of the data type of the underlying data blocks.
27

RETURN VALUES

29       Number of bytes in the message.
30

CONTEXT

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

SEE ALSO

35       msgdsize(9F)
36
37
38       STREAMS Programming Guide
39
40
41
42SunOS 5.11                        9 June 2004                      msgsize(9F)
Impressum