Home
last modified time | relevance | path

Searched refs:try_lock (Results 1 – 4 of 4) sorted by relevance

/linux/rust/kernel/sync/
H A Dlock.rs72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() method
188 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock()
191 unsafe { B::try_lock(self.state.get()).map(|state| Guard::new(self, state)) }
185 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { try_lock() method
/linux/rust/kernel/sync/lock/
H A Dglobal.rs90 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock()
92 inner: self.inner.try_lock()?,
87 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { try_lock() method
/linux/rust/kernel/
H A Dxarray.rs128 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock()
122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { try_lock() method
/linux/fs/xfs/
H A Dxfs_inode.c390 bool try_lock; in xfs_lock_inodes() local
416 try_lock = false; in xfs_lock_inodes()
428 if (!try_lock) { in xfs_lock_inodes()
429 for (j = (i - 1); j >= 0 && !try_lock; j--) { in xfs_lock_inodes()
432 try_lock = true; in xfs_lock_inodes()
442 if (!try_lock) { in xfs_lock_inodes()