te
Copyright (c) 2000 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]
Non-zero
Copyright (c) 2000 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]
TRAN_QUIESCE 9E "Jan 31, 1999"
NAME
tran_quiesce, tran_unquiesce - quiesce and unquiesce a SCSI bus
SYNOPSIS
#include <sys/scsi/scsi.h> int prefixtran_quiesce(dev_info_t *hba_dip);
int prefixtran_unquiesce(dev_info_t *hba_dip);
INTERFACE LEVEL
illumos DDI
PARAMETERS
hba_dip
The dev_info_t pointer associated with the SCSI HBA.
DESCRIPTION
The tran_quiesce() and tran_unquiesce() vectors in the
scsi_hba_tran(9S) structure should be initialized during the HBA driver's
attach(9E). They are HBA entry points to be called when a user initiates
quiesce and unquiesce operations through device control interfaces.
tran_quiesce() should wait for all outstanding commands to complete and blocks (or queues) any I/O requests issued. tran_unquiesce() should allow I/O activities to resume on the SCSI bus.
Implementation is hardware specific.
RETURN VALUES
tran_quiesce() and tran_unquiesce() should return:
0
Successful completion.
An error occurred.
ATTRIBUTES
See attributes(7) for a description of the following attributes:
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Committed |
SEE ALSO
attributes (7), tran_bus_reset (9E), scsi_hba_tran (9S)