interruptEventSource
Factory function for IOInterruptEventSources creation and initialisation.
Declaration
static IOInterruptEventSource * interruptEventSource(
OSObject *owner,
Action action,
IOService *provider = 0,
int intIndex = 0);Parameters
- owner:
Owning client of the new event source.
- action:
'C' Function to call when something happens.
- provider:
IOService that represents the interrupt source. Defaults to 0. When no provider is defined the event source assumes that the client will in some manner call the interruptOccured method explicitly. This will start the ball rolling for safe delivery of asynchronous event's into the driver.
- intIndex:
The index of the interrupt within the provider's interrupt sources. Defaults to 0, i.e. the first interrupt in the provider.
Return Value
A new interrupt event source if successfully created and initialised, 0 otherwise.