Home
last modified time | relevance | path

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

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