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

# Invalidate

```
kern_return_t Invalidate();
```

## Return Value

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

## Discussion\abstract Invalidate the IOWorkGroup.
\discussion This releases the kernel reference to the IOWorkGroup, allowing the name to be used for a different
IOWorkGroup. This method should be called after the client has configured the eventlink with the IOConnectTrap
call. After invalidation, the IOWorkGroup 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)