Lines Matching refs:u8
27 let p = dest.data() as *mut u8; in clear_user()
33 pub unsafe fn copy_to_user(dest: VirtAddr, src: &[u8]) -> Result<usize, SystemError> { in copy_to_user()
36 let p = dest.data() as *mut u8; in copy_to_user()
43 pub unsafe fn copy_from_user(dst: &mut [u8], src: VirtAddr) -> Result<usize, SystemError> { in copy_from_user() argument
46 let src: &[u8] = core::slice::from_raw_parts(src.data() as *const u8, dst.len()); in copy_from_user() constant
70 user: *const u8, in check_and_clone_cstr() argument
111 pub fn check_and_clone_cstr_array(user: *const *const u8) -> Result<Vec<String>, SystemError> { in check_and_clone_cstr_array()
119 let str_ptr: *const u8; in check_and_clone_cstr_array() constant
123 let mut dst = core::mem::transmute::<[usize; 1], [u8; size_of::<usize>()]>(dst); in check_and_clone_cstr_array()
125 let dst = core::mem::transmute::<[u8; size_of::<usize>()], [usize; 1]>(dst); in check_and_clone_cstr_array()
126 str_ptr = dst[0] as *const u8; in check_and_clone_cstr_array() constant