Home
last modified time | relevance | path

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

/openbmc/linux/rust/kernel/sync/lock/
H A Dspinlock.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()
H A Dmutex.rs96 type GuardState = (); typedef
108 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock()
114 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock()
/openbmc/linux/rust/kernel/sync/
H A Dlock.rs32 type GuardState; typedef
52 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock()
59 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock()
67 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock()