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);
ARGUMENTS
ap Pointer to the scsi_address structure.
level The level of reset required.
INTERFACE LEVEL
SPARC architecture specific (SPARC DDI).
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.
RETURN VALUES
scsi_reset() returns:
1 on success.
0 on failure.
CONTEXT
scsi_reset () can be called from user or interrupt context.
SEE ALSO
SunOS 5.1 Writing Device Drivers
SunOS 5.1 — Last change: 17 Sep 1991