sdi_rmevent(D3I) sdi_rmevent(D3I)
NAME
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);
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.
DESCRIPTION
sdi_addevent(D3I) and sdi_rmevent, together with
sdi_notifyevent(D3I), implement a driver-to-driver
communication mechanism for PDI SCSI drivers based on event
codes and SCSI device types. sdi_rmevent removes event from
an internal list of driver events, effectively un-registering
the driver event handler.
The call to sdi_rmevent must match a previous call to
sdi_addevent.
Return Values
On success, SDI_RET_OK. On failure SDI_RET_ERR.
USAGE
Sdi_rmevent will be called in the driver's unload or halt
routines, for each sdi_addevent that was previously called.
Level
Initialization or Base.
REFERENCES
sdi_event(D4I), sdi_addevent(D3I), sdi_notifyevent(D3I)
NOTICES
Applicability
sdi: 2
Copyright 1994 Novell, Inc. Page 1