Home
last modified time | relevance | path

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

/Linux-v6.6/rust/kernel/sync/
Dlock.rs32 type GuardState; typedef
52 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock() argument
59 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() argument
67 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock() argument
135 pub(crate) state: B::GuardState,
184 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
/Linux-v6.6/rust/kernel/sync/lock/
Dmutex.rs96 type GuardState = (); typedef
108 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() argument
114 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument
Dspinlock.rs95 type GuardState = (); typedef
107 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() argument
113 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument