Driver Entry Points tranresetnotify(9E)
NAME
tranresetnotify - request to notify SCSI target of bus
reset
SYNOPSIS
#include
int prefixtranresetnotify(struct scsiaddress *ap, int flag,
void (*callback, caddrt),caddrt arg);
INTERFACE LEVEL
Solaris architecture specific (Solaris DI).
PARAMETERS
ap Pointer to the scsiaddress(9S) structure.
flag A flag indicating registration or cancellation
of a notification request.
callback A pointer to the target driver's reset notifi-
cation function.
arg The callback function argument.
DESCRIPTION
The tranresetnotify() entry point is called when a target
driver requests notification of a bus reset.
The tranresetnotify() vector in the scsihbatran(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 scsiresetnotify(9F).
The argument flag is used to register or cancel the notifi-
cation. The supported values for flag are as follows:
SCSIRESETNOTIFY Register callback as the reset notifi-
cation function for the target.
SCSIRESETCANCEL Cancel the reset notification request
for the target.
SunOS 5.11 Last change: 30 Aug 1995 1
Driver Entry Points tranresetnotify(9E)
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.
RETURN VALUES
For SCSIRESETNOTIFY requests, tranresetnotify() must
return DISUCES if the notification request has been
accepted, and DIFAILURE otherwise.
For SCSIRESETCANCEL requests, tranresetnotify() must
return DISUCES if the notification request has been can-
celed, and DIFAILURE otherwise.
SEE ALSO
attach(9E), scsiifgetcap(9F), scsiresetnotify(9F),
scsiaddress(9S), scsihbatran(9S)
Writing Device Drivers
SunOS 5.11 Last change: 30 Aug 1995 2
|