Home
last modified time | relevance | path

Searched defs:GuardState (Results 1 – 3 of 3) sorted by relevance

/rust/kernel/sync/lock/
Dmutex.rs95 type GuardState = (); typedef
107 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock()
113 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock()
119 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
Dspinlock.rs94 type GuardState = (); typedef
106 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock()
112 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock()
118 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
/rust/kernel/sync/
Dlock.rs47 type GuardState; typedef
67 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock()
74 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock()
81 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock()
89 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock()