Home
last modified time | relevance | path

Searched refs:from_raw_parts (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/rust/kernel/alloc/
H A Dkvec.rs367 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() function
560 unsafe { Vec::from_raw_parts(ptr as _, len, len) }
587 unsafe { slice::from_raw_parts(self.as_ptr(), self.len) } in deref()
789 unsafe { Vec::from_raw_parts(ptr, len, cap) } in collect()
/linux-6.15/rust/kernel/
H A Dsecurity.rs63 unsafe { core::slice::from_raw_parts(ptr.cast(), self.len()) } in as_bytes()
H A Dfirmware.rs104 unsafe { core::slice::from_raw_parts((*self.as_raw()).data, self.size()) } in data()
H A Dstr.rs240 let bytes = unsafe { core::slice::from_raw_parts(ptr as _, len) }; in from_char_ptr()