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.
The argument flag is used to register or cancel the notification. The supported values for flag are as follows:
-
SCSI_RESET_NOTIFY
- Register callback as the reset notification function for the target driver.
-
SCSI_RESET_CANCEL
- 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.
|