Contents

Cancel

Cancels the execution of the action’s callbacks.

Declaration

kern_return_t Cancel(OSActionCancelHandler handler);

Parameters

  • handler:

    A handler block for the system to call after any in-flight callbacks finish executing.

Return Value

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

Discussion

After cancellation, you can only free the action object. You cannot reactivate it.

See Also

Ending the Action Early