sdi_rmevent(D3sdi)
sdi_rmevent --
remove a driver event handler
Synopsis
#include <sys/scsi.h>
#include <sys/sdi.h>
#include <sys/ddi.h>
int sdi_rmevent(struct sdi_event *event);
Description
sdi_addevent(D3sdi)
and sdi_rmevent,
together with
sdi_notifyevent(D3sdi),
implement a driver-to-driver communication mechanism for
SDI SCSI drivers
based on event codes and SCSI device types.
sdi_rmevent removes event from an internal list of driver events,
effectively unregistering the driver event handler.
The call to sdi_rmevent must match a previous call to sdi_addevent.
Arguments
event-
a structure defining the parameters of the driver event, including the
event code, SCSI device address, SCSI inquiry string, event-handling routine,
and SCSI device type to which driver event applies
Return values
On success, SDI_RET_OK.
On failure SDI_RET_ERR.
Usage
sdi_rmevent is called in the driver's unload or halt routines,
for each sdi_addevent that was previously called.
Context and synchronization
Blockable
context.
Applicable hardware
x86/Pentium compatible architectures
Version applicability
sdi:
2, 3, 4
target drivers.
References
sdi_event(D4sdi),
sdi_addevent(D3sdi),
sdi_notifyevent(D3sdi)
``SDI event handling'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005