Home
last modified time | relevance | path

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

/kernel/linux/linux-6.6/rust/kernel/
H A Dtypes.rs69 unsafe { Box::from_raw(ptr as _) } in from_foreign()
339 pub unsafe fn from_raw(ptr: NonNull<T>) -> Self { in from_raw() functions
353 unsafe { Self::from_raw(self.ptr) } in clone()
370 unsafe { Self::from_raw(NonNull::from(b)) } in from()
/kernel/linux/linux-6.6/rust/kernel/sync/
H A Darc.rs305 unsafe { drop(Box::from_raw(self.ptr.as_ptr())) }; in drop()
/kernel/linux/linux-6.6/rust/alloc/
H A Dboxed.rs63 //! [`Box::<T>::from_raw(value)`]. Conversely, the memory backing a `value: *mut
143 //! [`Box::<T>::from_raw(value)`]: Box::from_raw
933 /// let x = unsafe { Box::from_raw(ptr) };
945 /// let x = Box::from_raw(ptr);
953 #[must_use = "call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`"]
954 pub unsafe fn from_raw(raw: *mut T) -> Self { in from_raw() functions
1023 /// [`Box::from_raw`] function, allowing the `Box` destructor to perform
1031 /// Converting the raw pointer back into a `Box` with [`Box::from_raw`]
1036 /// let x = unsafe { Box::from_raw(pt
[all...]

Completed in 4 milliseconds