#include <sys/scsi/scsi.h>void scsi_reset_notify(struct scsi_address *ap, int flag, void (*callback)(caddr_t), caddr_t arg);
Solaris DDI specific (Solaris DDI).
Pointer to the scsi_address structure.
A flag indicating registration or cancellation of the notification request.
A pointer to the target driver's reset notification function.
The callback function argument.
scsi_reset_notify() is used by a target driver when it needs to be notified of a bus reset. The bus reset could be issued by the transport layer (e.g. the host bus adapter (HBA) driver or controller) or by another initiator.
Register callback as the reset notification function for the target driver.
Cancel the reset notification request.
Target drivers can find out whether the HBA driver and controller support reset notification by checking the reset-notification capability using the scsi_ifgetcap(9F) function.
The notification request has been accepted.
The transport layer does not support reset notification or could not accept this request.
The notification request has been canceled.
No notification request was registered.
scsi_reset_notify() can be called from user or interrupt context.