Contents

IOSimpleLockTryLock

Attempt to lock a spin lock.

Declaration

boolean_t IOSimpleLockTryLock(IOSimpleLock *lock);

Parameters

  • lock:

    Pointer to the lock.

Discussion

Lock the spin lock if it is currently unlocked, and return true. If the lock is held, return false. Successful calls to IOSimpleLockTryLock should be balanced with calls to IOSimpleLockUnlock.

See Also

Simple Locks