Home
last modified time | relevance | path

Searched refs:from_inner (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/rust/kernel/sync/
Darc.rs177 Ok(unsafe { Self::from_inner(Box::leak(inner).into()) }) in try_new()
210 unsafe fn from_inner(inner: NonNull<ArcInner<T>>) -> Self { in from_inner() method
257 unsafe { Self::from_inner(NonNull::new(ptr as _).unwrap()) } in from_foreign()
285 unsafe { Self::from_inner(self.ptr) } in clone()
423 ManuallyDrop::new(unsafe { Arc::from_inner(b.inner) }) in from()
537 inner: unsafe { Arc::from_inner(Box::leak(inner).into()) }, in try_new_uninit()
561 inner: unsafe { Arc::from_inner(inner.cast()) }, in assume_init()
/linux-6.6.21/rust/kernel/sync/arc/
Dstd_vendor.rs22 Ok(Arc::from_inner(ptr)) in downcast()