Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

tran_reset(9E)

tran_reset_notify(9E)

scsi_abort(9F)

scsi_reset(9F)

NAME

scsi_reset − reset a SCSI bus or target

SYNOPSIS

#include <sys/scsi/scsi.h>

int scsi_reset(struct scsi_address ∗ap, int level);

INTERFACE LEVEL

Solaris DDI specific (Solaris DDI). 

ARGUMENTS

ap Pointer to the scsi_address structure. 

level The level of reset required. 

DESCRIPTION

scsi_reset() asks the host adapter driver to reset the SCSI bus or a SCSI target as specified by level. If level equals RESET_ALL , the SCSI bus is reset. If it equals RESET_TARGET , ap is used to determine the target to be reset. 

On a successful reset, the pkt_reason is set to CMD_RESET and pkt_statistics is OR’ed with STAT_BUS_RESET or STAT_DEV_RESET.

RETURN VALUES

scsi_reset() returns:

1 on success. 

0 on failure. 

CONTEXT

scsi_reset() can be called from user or interrupt context. 

SEE ALSO

tran_reset(9E), tran_reset_notify(9E), scsi_abort(9F)

Writing Device Drivers

SunOS 5.5/SPARC  —  Last change: 30 Aug 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026