Home
last modified time | relevance | path

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

12

/linux/rust/kernel/sync/
H A Drcu.rs16 pub struct Guard(NotThreadSafe); struct
18 impl Guard { implementation
33 impl Default for Guard { implementation
40 impl Drop for Guard { implementation
50 pub fn read_lock() -> Guard { in read_lock()
51 Guard::new() in read_lock()
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> { implementation
180 impl<'a, T: ForeignOwnable> Guard<'a, T> { implementation
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> { in try_access_with_guard()
H A Dmaple_tree.rs275 let _rcu = kernel::sync::rcu::Guard::new(); in free_all_entries()
/linux/drivers/android/binder/
H A Dnode.rs10 sync::lock::{spinlock::SpinLockBackend, Guard},
334 guard: &mut Guard<'_, ProcessInner, SpinLockBackend>, in add_death()
489 guard: &Guard<'_, ProcessInner, SpinLockBackend>, in populate_counts()
499 guard: &Guard<'_, ProcessInner, SpinLockBackend>, in populate_debug_info()
512 pub(crate) fn force_has_count(&self, guard: &mut Guard<'_, ProcessInner, SpinLockBackend>) { in force_has_count()
528 guard: &mut Guard<'_, ProcessInner, SpinLockBackend>, in submit_oneway()
590 guard: &mut Guard<'_, ProcessInner, SpinLockBackend>, in take_outdated_transaction()
608 mut guard: Guard<'_, ProcessInner, SpinLockBackend>, in do_work_locked()
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.rs187 kernel::sync::lock::Guard<'static, (), kernel::sync::lock::mutex::MutexBackend>;
/linux/rust/kernel/sync/lock/
H A Dglobal.rs9 sync::lock::{Backend, Guard, Lock},
100 inner: Guard<'static, B::Item, B::Backend>,
H A Dspinlock.rs90 /// A [`Guard`] acquired from locking a [`SpinLock`].
92 /// This is simply a type alias for a [`Guard`] returned from locking a [`SpinLock`]. It will unlock
95 /// [`Guard`]: super::Guard
96 pub type SpinLockGuard<'a, T> = super::Guard<'a, T, SpinLockBackend>;
H A Dmutex.rs89 /// A [`Guard`] acquired from locking a [`Mutex`].
91 /// This is simply a type alias for a [`Guard`] returned from locking a [`Mutex`]. It will unlock
94 /// [`Guard`]: super::Guard
95 pub type MutexGuard<'a, T> = super::Guard<'a, T, MutexBackend>;
/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/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 */
/linux/arch/x86/
H A DKconfig1872 bool "Software Guard eXtensions (SGX)"
1879 Intel(R) Software Guard eXtensions (SGX) is a set of CPU instructions

12