<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOEventLink/Invalidate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOEventLink@F@Invalidate#"
  },
  "title" : "Invalidate"
}
-->

# Invalidate

```
kern_return_t Invalidate();
```

## Return Value

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

## Discussion\abstract Invalidate the IOEventLink.
\discussion This releases the kernel reference to the IOEventLink, allowing the name to be used for a different
IOEventLink. This method should be called after the client has configured the eventlink with the IOConnectTrap
call. After invalidation, the IOEventLink can no longer be configured through the IOConnectTrap call. No other
functionality is affected.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)