Home
last modified time | relevance | path

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

/linux-6.14.4/rust/kernel/sync/lock/
Dspinlock.rs102 type GuardState = (); typedef
114 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock()
120 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock()
126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
Dmutex.rs103 type GuardState = (); typedef
115 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock()
121 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock()
127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock()
/linux-6.14.4/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()