Searched refs:Revocable (Results 1 – 2 of 2) sorted by relevance
67 pub struct Revocable<T> { struct76 unsafe impl<T: Send> Send for Revocable<T> {} implementation81 unsafe impl<T: Sync + Send> Sync for Revocable<T> {} implementation83 impl<T> Revocable<T> { impl212 impl<T> PinnedDrop for Revocable<T> { implementation
18 Revocable,38 /// [`Device`] is unbound, revoking access to the encapsulated resource (see also [`Revocable`]).119 data: Arc<Revocable<T>>,126 /// (revoked)[`Revocable`] once the device is detached.132 let data = Arc::pin_init(Revocable::new(data), GFP_KERNEL)?;158 fn data(&self) -> &Revocable<T> { in new() 164 // SAFETY: In `Self::new` we've passed a valid pointer of `Revocable<T>` to in new() 165 // `devm_add_action()`, hence `ptr` must be a valid pointer to `Revocable<T>`. in new() 166 let data = unsafe { Arc::from_raw(ptr.cast::<Revocable<T>>()) }; in new() 190 /// Obtain `&'a T`, bypassing the [`Revocable`] in inner() [all...]