Lines Matching refs:UserPtr
25 pub struct UserPtr(*mut c_void);
27 impl UserPtr {
28 /// Create a `UserPtr` from an integer representing the userspace address.
34 /// Create a `UserPtr` from a pointer representing the userspace address.
61 pub fn wrapping_byte_add(self, add: usize) -> UserPtr {
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, len: usize) -> Result<bool> {
129 /// fn get_bytes_if_valid(uptr: UserPtr, len: usize) -> Result<KVec<u8>> {
150 ptr: UserPtr,
167 pub fn new(ptr: UserPtr, length: usize) -> Self {
215 ptr: UserPtr,
447 ptr: UserPtr,
641 fn raw_strncpy_from_user(dst: &mut [MaybeUninit<u8>], src: UserPtr) -> Result<usize> {