pub struct SpinLockIrqBackend;Expand description
A kernel spinlock_t lock backend that can only be acquired in interrupt disabled contexts.
Trait Implementations§
Source§impl Backend for SpinLockIrqBackend
impl Backend for SpinLockIrqBackend
Source§unsafe fn init(
ptr: *mut Self::State,
name: *const c_char,
key: *mut lock_class_key,
)
unsafe fn init( ptr: *mut Self::State, name: *const c_char, key: *mut lock_class_key, )
Initialises the lock. Read more
Source§unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState
unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState
Acquires the lock, making the caller its owner. Read more
Source§unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState)
unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState)
Releases the lock, giving up its ownership. Read more
Source§unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>
unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>
Tries to acquire the lock. Read more
Auto Trait Implementations§
impl Freeze for SpinLockIrqBackend
impl RefUnwindSafe for SpinLockIrqBackend
impl Send for SpinLockIrqBackend
impl Sync for SpinLockIrqBackend
impl Unpin for SpinLockIrqBackend
impl UnsafeUnpin for SpinLockIrqBackend
impl UnwindSafe for SpinLockIrqBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.