init
Primary initialiser for the IOEventSource class.
Declaration
virtual bool init(
OSObject *owner,
IOEventSource::Action action = 0);Parameters
- owner:
Owner of this instance of an event source. Used as the first parameter of the action callout. Owner will generally be an OSObject it doesn't have to be as no member functions will be called directly in it. It can just be a refcon for a client routine.
- action:
Pointer to C call out function. Action is a pointer to a C function that gets called when this event source has outstanding work. It will usually be called by the checkForWork member function. The first parameter of the action call out will always be the owner, this allows C++ member functions to be used as actions. Defaults to 0.
Return Value
true if the inherited classes and this instance initialise successfully.