Lines Matching full:rcu
10 use crate::{bindings, prelude::*, sync::rcu, types::Opaque};
44 /// Sample example as above, but explicitly using the rcu read side lock.
48 /// use kernel::sync::rcu;
56 /// let guard = rcu::read_lock();
100 let guard = rcu::read_lock(); in try_access()
103 // because the RCU read side lock prevents it from being dropped. in try_access()
115 /// remain accessible while the rcu read side guard is alive. In such cases, callers are not
118 pub fn try_access_with_guard<'a>(&'a self, _guard: &'a rcu::Guard) -> Option<&'a T> { in try_access_with_guard()
121 // valid because the RCU read side lock prevents it from being dropped. in try_access_with_guard()
230 /// holding the RCU read-side lock.
234 /// The RCU read-side lock is held while the guard is alive.
241 _rcu_guard: rcu::Guard,
246 fn new(data_ref: *const T, rcu_guard: rcu::Guard) -> Self { in new()
259 // SAFETY: By the type invariants, we hold the rcu read-side lock, so the object is in deref()