Home
last modified time | relevance | path

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

/linux/rust/kernel/alloc/
H A Dkbox.rs170 /// let ptr = KBox::into_raw(x);
171 /// // SAFETY: `ptr` comes from a previous call to `KBox::into_raw`.
178 pub fn into_raw(b: Self) -> *mut T {
184 /// See [`Box::into_raw`] for more details.
187 // SAFETY: `Box::into_raw` always returns a properly aligned and dereferenceable pointer
189 unsafe { &mut *Box::into_raw(b) }
206 let raw = Self::into_raw(self);
208 // SAFETY: `raw` comes from a previous call to `Box::into_raw`. By the safety requirements
354 let ptr = Self::into_raw(this); in pin_slice()
356 // SAFETY: `ptr` is valid, because it came from `Box::into_raw` in pin_slice()
203 pub fn into_raw(b: Self) -> *mut T { into_raw() function
[all...]
H A Dkvec.rs969 let ptr = Box::into_raw(b);
/linux/rust/kernel/pci/
H A Dio.rs43 pub const fn into_raw(self) -> usize { in into_raw() method
132 self.pdev.cfg_size().into_raw() in maxsize()
/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/sync/
H A Daref.rs136 pub fn into_raw(me: Self) -> NonNull<T> { in into_raw() method
/linux/rust/kernel/list/
H A Darc.rs347 /// The returned pointer is indistinguishable from pointers returned by [`Arc::into_raw`]. The
350 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
/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 Dtask.rs389 pub fn into_raw(self) -> bindings::kuid_t { in into_raw() method
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.rs510 let raw_item = ListArc::into_raw(item); in insert_inner()
/linux/rust/kernel/drm/gem/
H A Dshmem.rs130 let new = KBox::into_raw(unsafe { Pin::into_inner_unchecked(new) }); in new()
H A Dmod.rs293 let ptr = KBox::into_raw(unsafe { Pin::into_inner_unchecked(obj) }); in new()