/DragonOS/kernel/src/bpf/ |
H A D | mod.rs | 5 use crate::syscall::user_access::UserBufferReader; 15 let buf = UserBufferReader::new(attr, size as usize, true)?; in sys_bpf()
|
/DragonOS/kernel/src/bpf/map/ |
H A D | mod.rs | 18 use crate::syscall::user_access::{UserBufferReader, UserBufferWriter}; 262 let key_buf = UserBufferReader::new(arg.key as *const u8, key_size, true)?; in bpf_map_update_elem() 263 let value_buf = UserBufferReader::new(arg.value as *const u8, value_size, true)?; in bpf_map_update_elem() 292 let key_buf = UserBufferReader::new(arg.key as *const u8, key_size, true)?; in bpf_lookup_elem() 321 let key_buf = UserBufferReader::new(key_ptr as *const u8, key_size, true)?; in bpf_map_get_next_key() 351 let key_buf = UserBufferReader::new(arg.key as *const u8, key_size, true)?; in bpf_map_delete_elem() 395 let key_buf = UserBufferReader::new(arg.key as *const u8, key_size, true)?; in bpf_map_lookup_and_delete_elem()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | syscall.rs | 9 user_access::{UserBufferReader, UserBufferWriter}, 77 let epds_reader = UserBufferReader::new( in epoll_ctl()
|
/DragonOS/kernel/src/bpf/prog/ |
H A D | util.rs | 2 use crate::syscall::user_access::{check_and_clone_cstr, UserBufferReader}; 91 UserBufferReader::new(u.insns as *mut u8, u.insn_cnt as usize * 8, true)?; in try_from()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_job_control.rs | 9 user_access::{UserBufferReader, UserBufferWriter}, 85 let user_reader = UserBufferReader::new( in job_ctrl_ioctl()
|
H A D | tty_device.rs | 39 syscall::user_access::{UserBufferReader, UserBufferWriter}, 325 let _ = UserBufferReader::new( in kernel_ioctl() 383 let reader = UserBufferReader::new( in ioctl()
|
H A D | tty_core.rs | 23 syscall::user_access::{UserBufferReader, UserBufferWriter}, 223 let user_reader = UserBufferReader::new( in core_set_termios()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 23 syscall::user_access::{UserBufferReader, UserBufferWriter}, 253 UserBufferReader::new(uaddr.as_ptr::<u32>(), core::mem::size_of::<u32>(), true)?; in futex_wait() 420 UserBufferReader::new(uaddr1.as_ptr::<u32>(), core::mem::size_of::<u32>(), true)?; in futex_requeue() 613 UserBufferReader::new(uaddr.as_ptr::<u32>(), core::mem::size_of::<u32>(), true)?; in arch_futex_atomic_op_inuser() 685 let user_buffer_reader = UserBufferReader::new( in set_robust_list() 777 let user_buffer_reader = UserBufferReader::new( in handle_futex_death() 797 let user_buffer_reader = UserBufferReader::new( in handle_futex_death() 870 let user_buffer_reader = UserBufferReader::new( in next()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | mod.rs | 17 syscall::user_access::{UserBufferReader, UserBufferWriter}, 175 UserBufferReader::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_set_lock() 195 UserBufferReader::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_set_packet_mode()
|
/DragonOS/kernel/src/syscall/ |
H A D | user_access.rs | 158 pub struct UserBufferReader<'a> { struct 163 impl UserBufferReader<'_> { impl
|
H A D | mod.rs | 48 user_access::{UserBufferReader, UserBufferWriter}, 175 UserBufferReader::new(buf_vaddr as *const u8, len, from_user)?; in handle() 208 UserBufferReader::new(buf_vaddr as *const u8, len, frame.is_from_user())?; in handle() 740 let reader = UserBufferReader::new( in handle() 843 UserBufferReader::new(sigmask_addr, core::mem::size_of::<SigSet>(), true)?; in handle()
|
/DragonOS/kernel/src/perf/ |
H A D | mod.rs | 21 use crate::syscall::user_access::UserBufferReader; 252 let buf = UserBufferReader::new( in sys_perf_event_open()
|
/DragonOS/kernel/src/ipc/ |
H A D | syscall.rs | 30 user_access::{UserBufferReader, UserBufferWriter}, 359 let _ = UserBufferReader::new(vaddr.data() as *const u8, size, true)?; in shmat()
|
H A D | shm.rs | 14 syscall::user_access::{UserBufferReader, UserBufferWriter}, 304 UserBufferReader::new(user_buf, core::mem::size_of::<PosixShmIdDs>(), from_user)?; in ipc_set()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 10 use crate::syscall::user_access::UserBufferReader; 1764 let times_reader = UserBufferReader::new(times, size_of::<PosixTimeSpec>() * 2, true)?; in sys_utimensat() 1781 let times_reader = UserBufferReader::new(times, size_of::<PosixTimeval>() * 2, true)?; in sys_utimes()
|
/DragonOS/kernel/src/mm/ |
H A D | ucontext.rs | 31 syscall::user_access::{UserBufferReader, UserBufferWriter}, 553 UserBufferReader::new(old_vaddr.data() as *const u8, old_len, true)?; in mremap()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.9.md | 2270 实现了对用户空间传入指针抽象的UserBufferReader/Writer,来检验用户空间指针地址并提供一定的功能抽象 (#326)
|