Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/sync/
H A Dlock.rs72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() method
178 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() method
181 unsafe { B::try_lock(self.state.get()).map(|state| Guard::new(self, state)) } in try_lock()
/linux-6.15/rust/kernel/sync/lock/
H A Dglobal.rs87 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock() method
89 inner: self.inner.try_lock()?, in try_lock()
H A Dmutex.rs127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() method
H A Dspinlock.rs126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() method
/linux-6.15/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()
/linux-6.15/mm/
H A Drmap.c584 if (rwc && rwc->try_lock) { in folio_lock_anon_vma_read()
998 .try_lock = true, in folio_referenced()
2782 if (rwc->try_lock) { in rmap_walk_anon_lock()
2879 if (rwc->try_lock) { in __rmap_walk_file()
H A Dksm.c3028 if (rwc->try_lock) { in rmap_walk_ksm()
/linux-6.15/Documentation/locking/
H A Dlocktypes.rst31 Although implementations allow try_lock() from other contexts, it is
33 try_lock(). Furthermore, it is also necessary to evaluate the debugging
/linux-6.15/include/linux/
H A Drmap.h1002 bool try_lock; member
/linux-6.15/Documentation/translations/it_IT/locking/
H A Dlocktypes.rst33 Diverse implementazioni permettono di usare try_lock() anche in altri contesti,