Lines Matching refs:SpinLockGuard
27 pub struct SpinLockGuard<'a, T: 'a> { struct
34 impl<'a, T: 'a> SpinLockGuard<'a, T> { argument
71 pub fn lock(&self) -> SpinLockGuard<T> { in lock()
83 pub fn lock_no_preempt(&self) -> SpinLockGuard<T> { in lock_no_preempt()
92 pub fn lock_irqsave(&self) -> SpinLockGuard<T> { in lock_irqsave()
101 pub fn try_lock(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock()
106 return Ok(SpinLockGuard { in try_lock()
128 pub fn try_lock_irqsave(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock_irqsave()
132 return Ok(SpinLockGuard { in try_lock_irqsave()
144 pub fn try_lock_no_preempt(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock_no_preempt()
146 return Ok(SpinLockGuard { in try_lock_no_preempt()
177 impl<T> Deref for SpinLockGuard<'_, T> { implementation
186 impl<T> DerefMut for SpinLockGuard<'_, T> { implementation
193 impl<T> Drop for SpinLockGuard<'_, T> { implementation