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

# Associate

```
kern_return_t Associate(uint64_t options);
```

## Parameters

`options`

Options for Associate(). Use kIOEventLinkAssociateCurrentThread or kIOEventLinkAssociateOnWait.

## Return Value

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

## Discussion\abstract Associate a thread with the eventlink.
\discussion The eventlink should be activated before this call. This is not real-time safe.

---

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)