---
title: IOSimpleLockUnlock
framework: kernel
role: symbol
role_heading: Function
path: kernel/1553015-iosimplelockunlock
---

# IOSimpleLockUnlock

Unlock a spin lock.

## Declaration

```occ
void IOSimpleLockUnlock(IOSimpleLock *lock);
```

## Parameters

- `lock`: Pointer to the lock.

## Discussion

Discussion Unlock the lock, and restore preemption. Results are undefined if the caller has not locked the lock.

## See Also

### Simple Locks

- [IOSimpleLockAlloc](kernel/1553017-iosimplelockalloc.md)
- [IOSimpleLockInit](kernel/1552990-iosimplelockinit.md)
- [IOSimpleLockDestroy](kernel/3380136-iosimplelockdestroy.md)
- [IOSimpleLockFree](kernel/1553035-iosimplelockfree.md)
- [IOSimpleLockGetMachLock](kernel/1553019-iosimplelockgetmachlock.md)
- [IOSimpleLockLock](kernel/1552997-iosimplelocklock.md)
- [IOSimpleLockLockDisableInterrupt](kernel/1553005-iosimplelocklockdisableinterrupt.md)
- [IOSimpleLockTryLock](kernel/1553029-iosimplelocktrylock.md)
- [IOSimpleLockUnlockEnableInterrupt](kernel/1552998-iosimplelockunlockenableinterrup.md)
