Home
last modified time | relevance | path

Searched refs:from_raw (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/rust/kernel/
Dtypes.rs69 unsafe { Box::from_raw(ptr as _) } in from_foreign()
339 pub unsafe fn from_raw(ptr: NonNull<T>) -> Self { in from_raw() method
353 unsafe { Self::from_raw(self.ptr) } in clone()
370 unsafe { Self::from_raw(NonNull::from(b)) } in from()
/Linux-v6.6/rust/kernel/sync/
Darc.rs305 unsafe { Box::from_raw(self.ptr.as_ptr()) }; in drop()
/Linux-v6.6/rust/alloc/
Dboxed.rs942 pub unsafe fn from_raw(raw: *mut T) -> Self { in from_raw() method
2151 Ok(Box::from_raw(raw as *mut T)) in downcast()