Lines Matching refs:SpinLockGuard
174 pub struct SpinLockGuard<'a, T: 'a> { struct
179 impl<'a, T: 'a> SpinLockGuard<'a, T> { implementation
210 pub fn lock(&self) -> SpinLockGuard<T> { in lock()
213 return SpinLockGuard { in lock()
219 pub fn lock_irqsave(&self) -> SpinLockGuard<T> { in lock_irqsave()
224 return SpinLockGuard { in lock_irqsave()
230 pub fn try_lock(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock()
232 return Ok(SpinLockGuard { in try_lock()
240 pub fn try_lock_irqsave(&self) -> Result<SpinLockGuard<T>, SystemError> { in try_lock_irqsave()
243 return Ok(SpinLockGuard { in try_lock_irqsave()
263 impl<T> Deref for SpinLockGuard<'_, T> { implementation
272 impl<T> DerefMut for SpinLockGuard<'_, T> { implementation
279 impl<T> Drop for SpinLockGuard<'_, T> { implementation