sdi_event_alloc(D3I) sdi_event_alloc(D3I)
NAME
sdi_event_alloc - allocate a driver event structure
SYNOPSIS
#include <sys/sdi.h>
struct sdi_event * sdi_event_alloc(int flag);
Arguments
flag Indicates whether the allocation may sleep or not, and
is set to either KM_SLEEP or KM_NOSLEEP.
DESCRIPTION
sdi_event_alloc allocates a driver event structure.
Return Values
Pointer to an sdi_event structure.
USAGE
Only sdi_event_alloc should be used to allocate an sdi_event.
All fields are set to zero in the returned sdi_event
structure.
PDI may add fields to the end of the sdi_event for use by PDI.
This implies that PDI drivers may not use sdi_event structures
allocated themselves. Target drivers must allocate an
sdi_event structure with sdi_event_alloc.
Level
Base or Interrupt.
REFERENCES
sdi_addevent(D3I), sdi_event(D4I), sdi_event_free(D3I),
sdi_notifyevent(D3I), sdi_rmevent(D3I)
NOTICES
Applicability
sdi: 2
Copyright 1994 Novell, Inc. Page 1