2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH DATAMSG 9F "Jan 16, 2006"
9 datamsg \- test whether a message is a data message
13 #include <sys/stream.h>
18 \fBint\fR \fBdatamsg\fR(\fBunsigned char\fR \fItype\fR);
24 Architecture independent level 1 (DDI/DKI).
32 The type of message to be tested. The \fBdb_type\fR field of the
33 \fBdatab\fR(9S) structure contains the message type. This field may be accessed
34 through the message block using \fBmp->b_datap->db_type\fR.
40 The \fBdatamsg()\fR function tests the type of message to determine if it is a
41 data message type (\fBM_DATA\fR, \fBM_DELAY\fR, \fBM_PROTO\fR , or
53 if the message is a data message
68 The \fBdatamsg()\fR function can be called from user, interrupt, or kernel
73 The \fBput\fR(9E) routine enqueues all data messages for handling by the
74 \fBsrv\fR(9E) (service) routine. All non-data messages are handled in the
75 \fBput\fR(9E) routine.
83 5 if (datamsg(mp->b_datap->db_type)) {
87 9 switch (mp->b_datap->db_type) {
98 \fBput\fR(9E), \fBsrv\fR(9E), \fBallocb\fR(9F), \fBdatab\fR(9S), \fBmsgb\fR(9S)
101 \fIWriting Device Drivers\fR
104 \fISTREAMS Programming Guide\fR