[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    scsi_reset(9F) manual page Table of Contents

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.
  2. 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)


Table of Contents