Home
last modified time | relevance | path

Searched refs:UserBufferReader (Results 1 – 17 of 17) sorted by relevance

/DragonOS/kernel/src/bpf/
H A Dmod.rs5 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 Dmod.rs18 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 Dsyscall.rs9 user_access::{UserBufferReader, UserBufferWriter},
77 let epds_reader = UserBufferReader::new( in epoll_ctl()
/DragonOS/kernel/src/bpf/prog/
H A Dutil.rs2 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 Dtty_job_control.rs9 user_access::{UserBufferReader, UserBufferWriter},
85 let user_reader = UserBufferReader::new( in job_ctrl_ioctl()
H A Dtty_device.rs39 syscall::user_access::{UserBufferReader, UserBufferWriter},
325 let _ = UserBufferReader::new( in kernel_ioctl()
383 let reader = UserBufferReader::new( in ioctl()
H A Dtty_core.rs23 syscall::user_access::{UserBufferReader, UserBufferWriter},
223 let user_reader = UserBufferReader::new( in core_set_termios()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs23 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 Dmod.rs17 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 Duser_access.rs158 pub struct UserBufferReader<'a> { struct
163 impl UserBufferReader<'_> { argument
H A Dmod.rs48 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 Dmod.rs21 use crate::syscall::user_access::UserBufferReader;
252 let buf = UserBufferReader::new( in sys_perf_event_open()
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs30 user_access::{UserBufferReader, UserBufferWriter},
359 let _ = UserBufferReader::new(vaddr.data() as *const u8, size, true)?; in shmat()
H A Dshm.rs14 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 Dsyscall.rs10 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 Ducontext.rs31 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 DV0.1.9.md2270 实现了对用户空间传入指针抽象的UserBufferReader/Writer,来检验用户空间指针地址并提供一定的功能抽象 (#326)