Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/sync/lock/
H 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
H 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
/linux-6.15/rust/kernel/sync/
H 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
193 pub(crate) state: B::GuardState,
272 pub unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()