Searched refs:slice (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | syscall.rs | 81 unsafe { core::slice::from_raw_parts_mut::<'static, u8>(buf_vaddr as *mut u8, len) }; in sys_read() 110 unsafe { core::slice::from_raw_parts::<'static, u8>(buf_vaddr as *mut u8, len) }; in sys_write() 477 let iovs: &[IoVec] = core::slice::from_raw_parts(iov, iovcnt); in from_user() 491 slices.push(core::slice::from_raw_parts_mut(iov.iov_base, iov.iov_len)); in from_user() 502 for slice in self.0.iter() { in gather() 503 buf.extend_from_slice(slice); in gather() 511 for slice in self.0.iter_mut() { in scatter() 512 let len = core::cmp::min(slice.len(), data.len()); in scatter() 517 slice[..len].copy_from_slice(&data[..len]); in scatter() 530 let total_len: usize = self.0.iter().map(|slice| slice.len()).sum(); in new_buf()
|
D | file.rs | 261 ::core::slice::from_raw_parts_mut::<'static, u8>(ptr, name_bytes.len()); in readdir()
|
/DragonOS-0.1.7/kernel/src/net/ |
D | syscall.rs | 111 let data: &[u8] = unsafe { core::slice::from_raw_parts(optval, optlen) }; in do_setsockopt() 309 let buf = unsafe { core::slice::from_raw_parts(buf, len) }; in do_sendto() 373 let buf = unsafe { core::slice::from_raw_parts_mut(buf, len) }; in do_recvfrom() 757 let buf = core::slice::from_raw_parts_mut(addr as *mut u8, to_write); in write_to_user() 758 buf.copy_from_slice(core::slice::from_raw_parts( in write_to_user()
|
/DragonOS-0.1.7/kernel/src/driver/multiboot2/ |
D | multiboot2.h | 241 unsigned int slice; member
|