Home
last modified time | relevance | path

Searched refs:into_raw (Results 1 – 10 of 10) sorted by relevance

/linux/rust/kernel/alloc/
H A Dkbox.rs203 pub fn into_raw(b: Self) -> *mut T { in into_raw() function
214 unsafe { &mut *Box::into_raw(b) } in leak()
231 let raw = Self::into_raw(self); in assume_init()
379 let ptr = Self::into_raw(this); in forget_contents()
497 Box::into_raw(self).cast() in into_foreign()
532 Box::into_raw(unsafe { Pin::into_inner_unchecked(self) }).cast() in into_foreign()
H A Dkvec.rs857 let ptr = Box::into_raw(b);
/linux/rust/kernel/mm/
H A Dmmput_async.rs66 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in into_mmput_async()
/linux/rust/kernel/pci/
H A Dio.rs45 pub const fn into_raw(self) -> usize { in into_raw() method
160 self.pdev.cfg_size().into_raw() in maxsize()
/linux/rust/kernel/list/
H A Darc.rs346 /// The returned pointer is indistinguishable from pointers returned by [`Arc::into_raw`]. The
349 pub fn into_raw(self) -> *const T { in into_raw() function
350 Arc::into_raw(Self::transmute_to_arc(self)) in into_raw()
/linux/rust/kernel/fs/
H A Dfile.rs312 unsafe { ARef::from_raw(ARef::into_raw(me).cast()) } in assume_no_fdget_pos()
/linux/rust/kernel/
H A Dconfigfs.rs368 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()
H A Dauxiliary.rs367 let _ = KBox::into_raw(boxed); in new()
H A Drbtree.rs1319 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()
H A Dlist.rs494 let raw_item = ListArc::into_raw(item); in insert_inner()