Searched refs:UserPtr (Results 1 – 5 of 5) sorted by relevance
| /linux/rust/kernel/ |
| H A D | uaccess.rs | 25 pub struct UserPtr(*mut c_void); implementation 27 impl UserPtr { 28 /// Create a `UserPtr` from an integer representing the userspace address. in from_addr() 34 /// Create a `UserPtr` from a pointer representing the userspace address. in from_ptr() 61 pub fn wrapping_byte_add(self, add: usize) -> UserPtr { in wrapping_byte_add() 62 UserPtr(self.0.wrapping_byte_add(add)) 95 /// use kernel::uaccess::{UserPtr, UserSlice}; 97 /// fn bytes_add_one(uptr: UserPtr, len: usize) -> Result { 116 /// use kernel::uaccess::{UserPtr, UserSlice}; 119 /// fn is_valid(uptr: UserPtr, le 23 pub struct UserPtr(*mut c_void); global() struct 59 wrapping_byte_add(self, add: usize) -> UserPtr wrapping_byte_add() argument 165 new(ptr: UserPtr, length: usize) -> Self new() argument [all...] |
| H A D | prelude.rs | 103 uaccess::UserPtr,
|
| /linux/rust/kernel/debugfs/ |
| H A D | file_ops.rs | 149 let mut reader = UserSlice::new(UserPtr::from_ptr(buf as *mut c_void), count).reader(); 272 let mut writer = UserSlice::new(UserPtr::from_ptr(buf.cast()), count).writer(); in blob_read() 326 let mut reader = UserSlice::new(UserPtr::from_ptr(buf.cast_mut().cast()), count).reader(); in blob_write()
|
| /linux/drivers/android/binder/ |
| H A D | thread.rs | 839 UserSlice::new(UserPtr::from_addr(fda_uaddr as _), fds_len) in translate_object() 887 UserSlice::new(UserPtr::from_addr(sg_entry.sender_uaddr), sg_entry.length).reader(); in apply_sg() 1012 UserSlice::new(UserPtr::from_addr(trd_data_ptr.buffer as _), data_size).reader(); in copy_transaction_data() 1019 UserSlice::new(UserPtr::from_addr(trd_data_ptr.offsets as _), offsets_size) in copy_transaction_data() 1316 UserSlice::new(UserPtr::from_addr(write_start as _), write_len as _).reader(); in write() 1407 UserSlice::new(UserPtr::from_addr(read_start as _), read_len as _).writer(), in read() 1465 UserSlice::new(UserPtr::from_addr(req.read_buffer as _), req.read_size as _) in read()
|
| H A D | process.rs | 1656 let user_slice = UserSlice::new(UserPtr::from_addr(arg), _IOC_SIZE(cmd)); in ioctl()
|