datamsg - STREAMS: Tests whether a message is a data message
#include <sys/stream.h>
int datamsg(
unsigned char type );
Specifies the type of message to be tested. The db_type
member of the datab structure contains the message type.
You can access this member through the message block as
follows: mp->b_datap->db_type
The datamsg interface tests the type of message to determine
if it is a data message type.
The following list identifies the data message value
types: Ordinary data Requests a real-time delay Internal
control information and data Same meaning as the M_PROTO
except for priority
If the message is a data message, datamsg returns the
value 1. If the message is not a data message, datamsg
returns the value zero (0).
Kernel Interfaces: allocb(9r)
Programmer's Guide: STREAMS
datamsg(9r)
[ Back ] |