sdi_timeout(D3I) sdi_timeout(D3I)
NAME
sdi_timeout - call the appropriate kernel timeout routine
SYNOPSIS
#include <sys/types.h>
#include <sys/sdi.h>
#include <sys/ddi.h>
toid_t sdi_timeout(void (*fn)(), void *arg, long ticks,
pl_t pl, struct scsi_ad *scsi_adp);
Arguments
The first 4 arguments to sdi_timeout are comparable to the
arguments to itimeout(D3) or dtimeout(D3).
fn Function to execute when the time increment expires.
arg Argument to the function.
ticks Number of clock ticks to wait before the function is
called.
pl The interrupt priority level at which the function will
be called.
scsi_adp
Pointer to the SCSI address.
DESCRIPTION
sdi_timeout calls the appropriate kernel DDI/DKI timeout
routine for the selected HBA.
Return Values
The sdi_timeout return value is the value returned by
itimeout, which is a non-zero identifier that can be passed to
untimeout(D3) to cancel the request, if the function specified
by fn can be scheduled. If the function could not be
scheduled, 0 is returned.
USAGE
sdi_timeout is used by the target drivers in place of itimeout
if the function, fn, calls any of the HBA interface routines.
Since the HBA may be required to run on a particular
processor, sdi_timeout insures that the function runs on the
correct processor.
Copyright 1994 Novell, Inc. Page 1
sdi_timeout(D3I) sdi_timeout(D3I)
Level
Base or interrupt.
REFERENCES
dtimeout(D3), itimeout(D3), untimeout(D3)
NOTICES
Portability
AT-compatible architectures
Applicability
sdi: 2
Copyright 1994 Novell, Inc. Page 2