Home
last modified time | relevance | path

Searched refs:Guard (Results 1 – 21 of 21) sorted by relevance

/linux/rust/kernel/sync/
H A Dlock.rs174 pub fn lock(&self) -> Guard<'_, T, B> { in lock()
179 unsafe { Guard::new(self, state) }
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)) }
201 pub struct Guard<'a, T: ?Sized, B: Backend> {
207 // SAFETY: `Guard` is sync when the data protected by the lock is also sync. implementation
208 unsafe impl<T: Sync + ?Sized, B: Backend> Sync for Guard<'_, T, B> {}
210 impl<'a, T: ?Sized, B: Backend> Guard<'a, T, B> {
215 /// The following example shows how to use [`Guard::lock_ref()`] to assert the corresponding
219 /// # use kernel::{new_spinlock, sync::lock::{Backend, Guard, Loc
198 pub struct Guard<'a, T: ?Sized, B: Backend> { global() struct
200 stateGuard global() argument
204 _not_sendGuard global() argument
205 unsafe impl<T: Sync + ?Sized, B: Backend> Sync for Guard<'_, T, B> {} global() implementation
275 impl<T: ?Sized, B: Backend> core::ops::Deref for Guard<'_, T, B> { global() implementation
284 impl<T: ?Sized, B: Backend> core::ops::DerefMut for Guard<'_, T, B> global() implementation
294 impl<T: ?Sized, B: Backend> Drop for Guard<'_, T, B> { global() implementation
301 impl<'a, T: ?Sized, B: Backend> Guard<'a, T, B> { global() implementation
[all...]
H A Dcondvar.rs8 use super::{lock::Backend, lock::Guard, LockClassKey};
117 guard: &mut Guard<'_, T, B>, in wait_internal()
145 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait()
156 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible()
170 guard: &mut Guard<'_, T, B>, in wait_interruptible_freezable()
188 guard: &mut Guard<'_, T, B>, in wait_interruptible_timeout()
/linux/rust/kernel/
H A Dxarray.rs122 pub fn try_lock(&self) -> Option<Guard<'_, T>> { in try_lock()
125 Some(Guard { in try_lock()
135 pub fn lock(&self) -> Guard<'_, T> { in lock()
139 Guard { in lock()
150 pub struct Guard<'a, T: ForeignOwnable> { struct
155 impl<T: ForeignOwnable> Drop for Guard<'_, T> { argument
180 impl<'a, T: ForeignOwnable> Guard<'a, T> { impl
H A Drevocable.rs118 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
241 _rcu_guard: rcu::Guard,
246 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()
H A Ddevres.rs248 pub fn try_access_with_guard<'a>(&'a self, guard: &'a rcu::Guard) -> Option<&'a T> {
H A Dmaple_tree.rs275 let _rcu = kernel::sync::rcu::Guard::new(); in free_all_entries()
/linux/rust/kernel/sync/lock/
H A Dglobal.rs9 sync::lock::{Backend, Guard, Lock},
100 inner: Guard<'static, B::Item, B::Backend>,
/linux/Documentation/arch/arm/
H A Dmemory.rst51 ffc00000 ffc7ffff Guard region
/linux/Documentation/admin-guide/hw-vuln/
H A Dspecial-register-buffer-data-sampling.rst88 Software Guard Extensions (Intel SGX) enclaves. On logical processors that
/linux/drivers/android/binder/
H A Dprocess.rs32 lock::{spinlock::SpinLockBackend, Guard},
1710 fn new(thread: &'a Arc<Thread>, guard: &mut Guard<'_, ProcessInner, SpinLockBackend>) -> Self { in new()
1736 pub(crate) inner: Guard<'a, ProcessInner, SpinLockBackend>,
H A Dpage_range.rs185 kernel::sync::lock::Guard<'static, (), kernel::sync::lock::mutex::MutexBackend>;
/linux/Documentation/admin-guide/media/
H A Dbttv-cardlist.rst430 - Grand X-Guard / Trust 814PCI
H A Dvivid.rst726 - Insert Video Guard Band
728 adds 4 columns of pixels with the HDMI Video Guard Band code at the
731 to the HDMI Video Guard Band code that precedes each active video line
733 receiver has correct HDMI Video Guard Band processing, enable this
736 have the same value as the Video Guard Band that precedes them.
737 Receivers that will just keep skipping Video Guard Band values will
H A Ddvb_intro.rst131 # T Frequency Bandwidth FEC FEC2 QAM Mode Guard Hier
/linux/Documentation/arch/x86/
H A Dsgx.rst4 Software Guard eXtensions (SGX)
10 Software Guard eXtensions (SGX) hardware enables for user space applications
/linux/arch/x86/kvm/
H A DKconfig123 bool "Software Guard eXtensions (SGX) Virtualization"
/linux/include/linux/
H A Dpage-flags.h1049 PAGE_TYPE_OPS(Guard, guard, guard) in PAGE_TYPE_OPS()
/linux/tools/memory-model/Documentation/
H A Dordering.txt523 o Guard all accesses to a given variable by a particular lock,
/linux/tools/arch/x86/kcpuid/
H A Dcpuid.csv191 0x7, 0, ebx, 2, sgx , Intel SGX (Software Guard Extensions)
406 # Intel Software Guard Extensions (SGX) enumeration
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx.seq172 * Guard against a bus free after (re)selection
885 /* Guard against overruns */
H A Daic79xx.seq1542 * Guard against SG_CACHE_AVAIL activating during sg fetch