Searched refs:into_raw (Results 1 – 14 of 14) sorted by relevance
193 /// let ptr = KBox::into_raw(x);194 /// // SAFETY: `ptr` comes from a previous call to `KBox::into_raw`.201 pub fn into_raw(b: Self) -> *mut T {207 /// See [`Box::into_raw`] for more details.210 // SAFETY: `Box::into_raw` always returns a properly aligned and dereferenceable pointer212 unsafe { &mut *Box::into_raw(b) } in leak() 229 let raw = Self::into_raw(self);231 // SAFETY: `raw` comes from a previous call to `Box::into_raw`. By the safety requirements in assume_init() 401 let ptr = Self::into_raw(this); in drop_contents() 403 // SAFETY: `ptr` is valid, because it came from `Box::into_raw` in drop_contents() 203 pub fn into_raw(b: Self) -> *mut T { into_raw() function [all...]
1010 let ptr = Box::into_raw(b);
66 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in into_mmput_async()
42 pub const fn into_raw(self) -> usize {131 self.pdev.cfg_size().into_raw() in maxsize() 43 pub const fn into_raw(self) -> usize { into_raw() method
137 /// let raw_ptr: NonNull<Empty> = ARef::into_raw(data_ref); in into_raw() 141 pub fn into_raw(me: Self) -> NonNull<T> {136 pub fn into_raw(me: Self) -> NonNull<T> { into_raw() method
347 /// The returned pointer is indistinguishable from pointers returned by [`Arc::into_raw`]. The350 pub fn into_raw(self) -> *const T { in into_raw() 351 Arc::into_raw(Self::transmute_to_arc(self)) in into_raw() 349 pub fn into_raw(self) -> *const T { into_raw() function
312 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in assume_no_fdget_pos()
389 pub fn into_raw(self) -> bindings::kuid_t { in into_raw() method
368 let child_group_ptr = child_group.into_raw(); in make_group() 405 // SAFETY: We called `into_raw` to produce `r_child_group_ptr` in in drop_item() 410 arc.into_raw(); in drop_item() 453 // SAFETY: We called `into_raw` on `r_group_ptr` in in release()
475 let _ = KBox::into_raw(boxed);
1319 let node = KBox::into_raw(node.node); in insert() 1326 // "forgot" it with `KBox::into_raw`. in insert() 1408 let node = KBox::into_raw(node.node); in replace()
510 let raw_item = ListArc::into_raw(item); in insert_inner()
141 let new = KBox::into_raw(unsafe { Pin::into_inner_unchecked(new) }); in new()
316 let ptr = KBox::into_raw(unsafe { Pin::into_inner_unchecked(obj) });318 // SAFETY: `ptr` comes from `KBox::into_raw` and hence can't be NULL. in free_callback()