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

# IORWLockUnlock

```
void IORWLockUnlock(struct IORWLock *lock);
```

## Parameters

`lock`

Pointer to the allocated lock.

## Discussion

\abstract Unlock a read/write lock.
\discussion Undo one call to IORWLockRead or IORWLockWrite. Results are undefined if the caller has not locked the lock.

---

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)