 |
Index for Section 9r |
|
 |
Alphabetical listing for D |
|
 |
Bottom of page |
|
datamsg(9r)
NAME
datamsg - STREAMS: Tests whether a message is a data message
SYNOPSIS
#include <sys/stream.h>
int datamsg(
unsigned char type );
ARGUMENTS
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
DESCRIPTION
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:
M_DATA Ordinary data
M_DELAY Requests a real-time delay
M_PROTO Internal control information and data
M_PCPROTO
Same meaning as the M_PROTO except for priority
RETURN VALUES
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).
SEE ALSO
Kernel Interfaces: allocb(9r)
Programmer's Guide: STREAMS
 |
Index for Section 9r |
|
 |
Alphabetical listing for D |
|
 |
Top of page |
|