IOSimpleLockUnlockEnableInterrupt
Unlock a spin lock, and restore interrupt state.
Declaration
void IOSimpleLockUnlockEnableInterrupt(IOSimpleLock *lock, IOInterruptState state);Parameters
- lock:
Pointer to the lock.
- state:
The interrupt state returned by IOSimpleLockLockDisableInterrupt()
Discussion
Unlock the lock, and restore preemption and interrupts to the state as they were when the lock was taken. Results are undefined if the caller has not locked the lock.