1msgdsize(9F) Kernel Functions for Drivers msgdsize(9F)
2
3
4
6 msgdsize - return the number of bytes in a message
7
9 #include <sys/stream.h>
10
11
12
13 size_t msgdsize(mblk_t *mp);
14
15
17 Architecture independent level 1 (DDI/DKI).
18
20 mp Message to be evaluated.
21
22
24 The msgdsize() function counts the number of bytes in a data message.
25 Only bytes included in the data blocks of type M_DATA are included in
26 the count.
27
29 The number of data bytes in a message, expressed as an integer.
30
32 The msgdsize() function can be called from user, interrupt, or kernel
33 context.
34
36 See bufcall(9F) for an example that uses msgdsize().
37
39 bufcall(9F)
40
41
42 Writing Device Drivers
43
44
45 STREAMS Programming Guide
46
47
48
49SunOS 5.11 16 Jan 2006 msgdsize(9F)