2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DLBINDACK 9F "April 9, 2016"
8 dlbindack, dlphysaddrack, dlokack, dlerrorack, dluderrorind \- DLPI device
9 driver helper functions
17 \fBvoid\fR \fBdlokack\fR(\fBqueue_t *\fR\fIwq\fR, \fBmblk_t *\fR\fImp\fR, \fBt_uscalar_t\fR \fIcorrect_primitive\fR);
22 \fBvoid\fR \fBdlerrorack\fR(\fBqueue_t *\fR\fIwq\fR, \fBmblk_t *\fR\fImp\fR, \fBt_uscalar_t\fR \fIerror_primitive\fR,
23 \fBt_uscalar_t\fR \fIerror\fR, \fBt_uscalar_t\fR \fIunix_errno\fR);
28 \fBvoid\fR \fBdlbindack\fR(\fBqueue_t *\fR\fIwq\fR, \fBmblk_t *\fR\fImp\fR, \fBt_scalar_t\fR \fIsap\fR, \fBconst void *\fR\fIaddrp\fR,
29 \fBt_uscalar_t\fR \fIaddrlen\fR, \fBt_uscalar_t\fR \fImaxconind\fR, \fB t_uscalar_t\fR \fIxidtest\fR);
34 \fBvoid\fR \fBdlphysaddrack\fR(\fBqueue_t *\fR\fIwq\fR, \fBmblk_t *\fR\fImp\fR, \fBconst void *\fR\fIaddrp\fR,
35 \fBt_uscalar_t\fR \fIaddrlen\fR);
40 \fBvoid\fR \fBdluderrorind\fR(\fBqueue_t *\fR\fIwq\fR, \fBmblk_t *\fR\fImp\fR, \fBconst void *\fR\fIaddrp\fR,
41 \fBt_uscalar_t\fR \fIaddrlen\fR, \fBt_uscalar_t\fR \fIerror\fR, \fBt_uscalar_t\fR \fIunix_errno\fR);
46 Solaris DDI specific (Solaris DDI).
62 Pointer to the bind request message.
71 Service access point being requested.
80 Pointer to the dlpi layer source address.
89 Size of the \fBdlpi\fR layer address pointed to by \fIaddr\fR.
98 Maximum number of \fBDL_CONNECT_IND\fR messages allowed to be outstanding per
108 The \fBXID\fR and \fBTEST\fR responses supported.
114 \fB\fIcorrect_primitive\fR\fR
117 Identifies the \fBDL\fR primitive completing successfully.
123 \fB\fIerror_primitive\fR\fR
126 Identifies the \fBDL\fR primitive in error.
135 \fBDLPI\fR error associated with the failure in the \fBDLPI\fR request.
141 \fB\fIunix_errno\fR\fR
144 Corresponding \fBUNIX\fR system error that can be associated with the failure
145 in the \fBDLPI\fR request.
150 All functions described in this manpage take a pointer to the message passed to
151 the \fBDLPI\fR provider (\fBmblk_t\fR) and attempt to reuse it in formulating
152 the \fBM_PROTO\fR reply. If the message block is too small to be reused, it is
153 freed and a new one is allocated.
156 All functions reply upstream using \fBqreply\fR(9F). The write-side queue
157 pointer must be provided.
160 The \fBdlokack()\fR function provides the successful acknowledgement
161 \fBDL_OK_ACK\fR message reply to the \fBDLPI\fR provider and is used to
162 complete many of the \fBDLPI\fR requests in the \fBDLPI\fR consumer.
165 The \fBdlerrorack()\fR function provides the unsuccessful acknowledgement
166 \fBDL_ERROR_ACK\fR message reply to the \fBDLPI\fR() provider and is used for
167 error completions were required for \fBDLPI\fR requests in the \fBDLPI\fR
171 The \fBdlbindack()\fR function provides the \fBDL_BIND_ACK\fR message reply to
172 the \fBDLPI\fR provider and is used to complete the \fBDL_BIND_REQ\fR
173 processing in the \fBDLPI\fR consumer.
176 The \fBdlphysaddrack()\fR function provides the \fB\fR()\fBDL_PHYS_ADDR_ACK\fR
177 message reply used to complete the \fBDL_PHYS_ADDR_ACK\fR processing.
180 The \fBdluderrorind()\fR function provides the \fBDL_UDERROR_IND\fR message
181 reply used to complete an unsuccessful \fBDL_UNITDATA_REQ\fR.
187 These functions are not required if you are are writing a \fBDLPI\fR device
188 driver using \fBgld\fR(7D).
191 All \fBDLPI\fR helper functions can be called from user, interrupt, or kernel
195 \fBgld\fR(7D), \fBdlpi\fR(7P), \fBqreply\fR(9F)
198 \fIWriting Device Drivers\fR
201 \fISTREAMS Programming Guide\fR