Home
last modified time | relevance | path

Searched refs:slice_from_raw_parts (Results 1 – 7 of 7) sorted by relevance

/linux/rust/kernel/alloc/
H A Dallocator.rs134 Ok(NonNull::slice_from_raw_parts(ptr, size)) in aligned_layout()
/linux/rust/zerocopy/src/util/
H A Dmod.rs702 fn slice_from_raw_parts(data: Self, len: usize) -> NonNull<[T]>; in slice_from_raw_parts() method
714 fn slice_from_raw_parts(data: Self, len: usize) -> NonNull<[T]> { in slice_from_raw_parts() method
H A Dmacro_util.rs108 let ptr: *const [u8] = ptr::slice_from_raw_parts(ptr.cast(), _64K);
140 $crate::util::macro_util::core_reexport::ptr::slice_from_raw_parts(
/linux/rust/kernel/
H A Dbitmap.rs36 let data: *const [()] = core::ptr::slice_from_raw_parts(ptr.cast(), nbits); in from_raw()
45 // (its size is 0 and alignment is 1). The `slice_from_raw_parts` in from_raw()
H A Ddma.rs809 let cpu_addr = NonNull::slice_from_raw_parts(NonNull::new(addr.cast()).ok_or(ENOMEM)?, len); in init()
/linux/rust/zerocopy/src/
H A Dlayout.rs1773 … let slc = NonNull::slice_from_raw_parts(NonNull::from(&aligned_buf.t), elems); in test_validate_rust_layout()
H A Dlib.rs1071 NonNull::slice_from_raw_parts(data.cast::<T>(), elems) in raw_from_ptr_len()