Home
last modified time | relevance | path

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

/rust/kernel/sync/lock/
A Dmutex.rs103 type GuardState = (); typedef
115 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() argument
121 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument
127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() argument
A Dspinlock.rs102 type GuardState = (); typedef
114 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() argument
120 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument
126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() argument
/rust/kernel/sync/
A Dlock.rs45 type GuardState; typedef
65 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock() argument
72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() argument
79 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() argument
87 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock() argument
195 pub(crate) state: B::GuardState,
274 pub unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()

Completed in 5 milliseconds