2 .\" Copyright (c) 2009, 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 SCSI_HBA_PKT_COMP 9F "Jan 29, 2009"
8 scsi_hba_pkt_comp \- scsi_pkt completion routine
12 #include <sys/scsi/scsi.h>
14 \fBvoid\fR \fBscsi_hba_pkt_comp\fR(\fBstruct scsi_pkt *\fR\fIpkt\fR);
24 Pointer to a \fBscsi_pkt\fR(9S) structure.
30 Solaris DDI specific (Solaris DDI).
34 After filling in \fBscsi_pkt\fR(9S) fields with packet completion information,
35 an HBA driver should call the \fBscsi_hba_pkt_comp()\fR function. This function
36 is the recommended way for an HBA driver to signal completion of a
37 \fBscsi_pkt\fR structure. Use is mandatory for HBA drivers that use
38 \fBtran_setup_pkt\fR(9E).
41 Calling the \fBscsi_hba_pkt_comp()\fR function allows SCSA to observe, and
42 possibly react to, the completion of a \fBscsi_pkt\fR request.
45 A call to the \fBscsi_hba_pkt_comp()\fR function will always result in a call
46 to the \fIpkt_comp\fR() callback function defined in \fBscsi_pkt\fR(9S). This
47 \fIpkt_comp\fR() callback may, however, occur after return from
48 \fBscsi_hba_pkt_comp()\fR, and may occur from a different thread executing on a
53 The \fBscsi_hba_pkt_comp()\fR function can be called from user, interrupt, or
58 See \fBattributes\fR(5) for descriptions of the following attributes:
66 ATTRIBUTE TYPE ATTRIBUTE VALUE
68 Interface Stability Committed
74 \fBattributes\fR(5), \fBtran_setup_pkt\fR(9E), \fBscsi_pkt\fR(9S)
78 HBA driver calls \fBscsi_hba_pkt_comp()\fR instead of calling
79 \fBscsi_pkt\fR(9S) \fIpkt_comp\fR directly.