xref: /illumos-gate/usr/src/man/man9f/scsi_hba_probe.9f (revision 69a119caa6570c7077699161b7c28b6ee9f8b0f4)
te
Copyright (c) 1995, Sun Microsystems, Inc., All Rights Reserved
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.
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.
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]
SCSI_HBA_PROBE 9F "Aug 30, 1995"
NAME
scsi_hba_probe - default SCSI HBA probe function
SYNOPSIS

#include <sys/scsi/scsi.h>



int scsi_hba_probe(struct scsi_device *sd, int(*waitfunc)(void));
INTERFACE LEVEL

Solaris architecture specific (Solaris DDI).

PARAMETERS
sd

Pointer to a scsi_device(9S) structure describing the target.

waitfunc

NULL_FUNC or SLEEP_FUNC.

DESCRIPTION

scsi_hba_probe() is a function providing the semantics of scsi_probe(9F). An HBA driver may call scsi_hba_probe() from its tran_tgt_probe(9E) entry point, to probe for the existence of a target on the SCSI bus, or the HBA may set tran_tgt_probe(9E) to point to scsi_hba_probe directly.

RETURN VALUES

See scsi_probe(9F) for the return values from scsi_hba_probe().

CONTEXT

scsi_hba_probe() should only be called from the HBA's tran_tgt_probe(9E) entry point.

SEE ALSO

tran_tgt_probe(9E), scsi_probe(9F), scsi_device(9S)

Writing Device Drivers