TRAN_RESET_NOTIFY(9E) | Driver Entry Points | TRAN_RESET_NOTIFY(9E) |
#include <sys/scsi/scsi.h> int prefixtran_reset_notify(struct scsi_address *ap, int flag, void (*callback, caddr_t),caddr_t arg);
flag
callback
arg
The tran_reset_notify() vector in the scsi_hba_tran(9S) structure may be initialized in the HBA driver's attach(9E) routine to point to the HBA entry point to be called when a target driver calls scsi_reset_notify(9F).
The argument flag is used to register or cancel the notification. The supported values for flag are as follows:
SCSI_RESET_NOTIFY
SCSI_RESET_CANCEL
The HBA driver maintains a list of reset notification requests registered by the target drivers. When a bus reset occurs, the HBA driver notifies registered target drivers by calling the callback routine, callback, with the argument, arg, for each registered target.
For SCSI_RESET_CANCEL requests, tran_reset_notify() must return DDI_SUCCESS if the notification request has been canceled, and DDI_FAILURE otherwise.
Writing Device Drivers
August 30, 1995 | OmniOS |