Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / scsi_hba_probe.9f
blobaca69c749c3b4d694fa38ca1d8824ae7deb7b006
1 '\" te
2 .\"  Copyright (c) 1995, 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_PROBE 9F "Aug 30, 1995"
7 .SH NAME
8 scsi_hba_probe \- default SCSI HBA probe function
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/scsi/scsi.h>
16 \fBint\fR \fBscsi_hba_probe\fR(\fBstruct scsi_device *\fR\fIsd\fR, \fBint\fR\fB(*\fRwaitfunc\fB)(void)\fR);
17 .fi
19 .SH INTERFACE LEVEL
20 .sp
21 .LP
22 Solaris architecture specific (Solaris DDI).
23 .SH PARAMETERS
24 .sp
25 .ne 2
26 .na
27 \fB\fIsd\fR \fR
28 .ad
29 .RS 13n
30 Pointer to a  \fBscsi_device\fR(9S) structure describing the target.
31 .RE
33 .sp
34 .ne 2
35 .na
36 \fB\fIwaitfunc\fR \fR
37 .ad
38 .RS 13n
39 \fBNULL_FUNC\fR or \fBSLEEP_FUNC\fR.
40 .RE
42 .SH DESCRIPTION
43 .sp
44 .LP
45 \fBscsi_hba_probe()\fR is a function providing the semantics of
46 \fBscsi_probe\fR(9F). An \fBHBA\fR driver may call \fBscsi_hba_probe()\fR from
47 its \fBtran_tgt_probe\fR(9E) entry point, to probe for the existence of a
48 target on the \fBSCSI\fR bus, or the \fBHBA\fR may set \fBtran_tgt_probe\fR(9E)
49 to point to \fBscsi_hba_probe\fR directly.
50 .SH RETURN VALUES
51 .sp
52 .LP
53 See \fBscsi_probe\fR(9F) for the return values from \fBscsi_hba_probe()\fR.
54 .SH CONTEXT
55 .sp
56 .LP
57 \fBscsi_hba_probe()\fR should only be called from the \fBHBA\fR's
58 \fBtran_tgt_probe\fR(9E) entry point.
59 .SH SEE ALSO
60 .sp
61 .LP
62 \fBtran_tgt_probe\fR(9E), \fBscsi_probe\fR(9F), \fBscsi_device\fR(9S)
63 .sp
64 .LP
65 \fIWriting Device Drivers\fR