Searched refs:try_lock (Results 1 – 12 of 12) sorted by relevance
| /linux/rust/kernel/sync/ |
| H A D | lock.rs | 72 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 D | global.rs | 89 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { in try_lock() 91 inner: self.inner.try_lock()?, in try_lock() 87 pub fn try_lock(&'static self) -> Option<GlobalGuard<B>> { try_lock() method
|
| H A D | spinlock.rs | 130 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() 126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { try_lock() method
|
| H A D | mutex.rs | 131 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() 127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { try_lock() method
|
| /linux/rust/kernel/ |
| H A D | xarray.rs | 122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock() method
|
| /linux/drivers/android/binder/ |
| H A D | page_range.rs | 294 mm_lock.try_lock() in stable_trylock_mm() 737 let inner = match range.lock.try_lock() { in rust_shrink_free_page()
|
| /linux/fs/xfs/ |
| H A D | xfs_inode.c | 390 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/mm/ |
| H A D | rmap.c | 664 if (rwc && rwc->try_lock) { in folio_lock_anon_vma_read() 1071 .try_lock = true, in folio_referenced() 2935 if (rwc->try_lock) { in rmap_walk_anon_lock() 3038 if (rwc->try_lock) { in __rmap_walk_file()
|
| H A D | ksm.c | 3177 if (rwc->try_lock) { in rmap_walk_ksm()
|
| /linux/Documentation/locking/ |
| H A D | locktypes.rst | 31 Although implementations allow try_lock() from other contexts, it is 33 try_lock(). Furthermore, it is also necessary to evaluate the debugging
|
| /linux/include/linux/ |
| H A D | rmap.h | 953 bool try_lock; member
|
| /linux/Documentation/translations/it_IT/locking/ |
| H A D | locktypes.rst | 33 Diverse implementazioni permettono di usare try_lock() anche in altri contesti,
|