---
title: Cancel
framework: DriverKit
role: symbol
role_heading: Instance Method
path: driverkit/ioeventlink/cancel
---

# Cancel

## Declaration

```occ
kern_return_t Cancel();
```

## Return Value

Return Value kIOReturnSuccess on success. See IOReturn.h for error codes.

## Discussion

Discussion Cancel the event link. If a thread is waiting on the eventlink, cancellation will wake up that thread.
