Searched refs:from_raw_parts (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/rust/kernel/alloc/ |
| H A D | kvec.rs | 367 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 D | security.rs | 63 unsafe { core::slice::from_raw_parts(ptr.cast(), self.len()) } in as_bytes()
|
| H A D | firmware.rs | 104 unsafe { core::slice::from_raw_parts((*self.as_raw()).data, self.size()) } in data()
|
| H A D | str.rs | 240 let bytes = unsafe { core::slice::from_raw_parts(ptr as _, len) }; in from_char_ptr()
|