Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/rust/kernel/sync/lock/
H A Dspinlock.rs95 type GuardState = (); types
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 = (); types
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()
/kernel/linux/linux-6.6/rust/kernel/sync/
H A Dlock.rs32 type GuardState; types
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()
135 pub(crate) state: B::GuardState,
184 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self {

Completed in 2 milliseconds