init
Primary initialiser for the IOInterruptEventSource class.
Declaration
virtual bool init(
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
true if the inherited classes and this instance initialise successfully.