Contents

SetHandler

Set the handler block to run when the interrupt fires.

Declaration

virtual kern_return_t SetHandler(OSAction *action);

Parameters

  • action:

    An Osaction object that specifies the method to call when an interrupt occurs. The system retains this Osaction object until you call this method with a different action object or you cancel the dispatch source.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

See Also

Configuring the Interrupt Source