static __inline__
void IOLockLock( IOLock * lock)
{
- _mutex_lock(lock);
+ mutex_lock(lock);
}
/*! @function IOLockTryLock
static __inline__
boolean_t IOLockTryLock( IOLock * lock)
{
- return(_mutex_try(lock));
+ return(mutex_try(lock));
}
/*! @function IOLockUnlock
static __inline__
void IOSimpleLockLock( IOSimpleLock * lock )
{
- simple_lock( lock );
+ usimple_lock( lock );
}
/*! @function IOSimpleLockTryLock
static __inline__
boolean_t IOSimpleLockTryLock( IOSimpleLock * lock )
{
- return( simple_lock_try( lock ) );
+ return( usimple_lock_try( lock ) );
}
/*! @function IOSimpleLockUnlock
static __inline__
void IOSimpleLockUnlock( IOSimpleLock * lock )
{
- simple_unlock( lock );
+ usimple_unlock( lock );
}
typedef long int IOInterruptState;
IOInterruptState IOSimpleLockLockDisableInterrupt( IOSimpleLock * lock )
{
IOInterruptState state = ml_set_interrupts_enabled( false );
- simple_lock( lock );
+ usimple_lock( lock );
return( state );
}
void IOSimpleLockUnlockEnableInterrupt( IOSimpleLock * lock,
IOInterruptState state )
{
- simple_unlock( lock );
+ usimple_unlock( lock );
ml_set_interrupts_enabled( state );
}