Home
last modified time | relevance | path

Searched refs:UserBufferWriter (Results 1 – 23 of 23) sorted by relevance

/DragonOS/kernel/src/syscall/
H A Dmisc.rs11 use super::{user_access::UserBufferWriter, Syscall};
37 let mut writer = UserBufferWriter::new(info, core::mem::size_of::<SysInfo>(), true)?; in sysinfo()
73 let mut writer = UserBufferWriter::new(buf, len, true)?; in get_random()
H A Duser_access.rs153 pub struct UserBufferWriter<'a> { struct
272 impl<'a> UserBufferWriter<'a> { implementation
H A Dmod.rs48 user_access::{UserBufferReader, UserBufferWriter},
164 UserBufferWriter::new(buf_vaddr as *mut u8, len, from_user)?; in handle()
196 UserBufferWriter::new(buf_vaddr as *mut u8, len, frame.is_from_user())?; in handle()
569 let mut user_buffer_writer = UserBufferWriter::new( in handle()
862 let mut user_buffer_writer = UserBufferWriter::new( in handle()
920 UserBufferWriter::new(buf_vaddr as *mut u8, len, from_user)?; in handle()
1078 UserBufferWriter::new(set_vaddr as *mut u8, size, frame.is_from_user())?; in handle()
/DragonOS/kernel/src/time/
H A Dsyscall.rs10 syscall::{user_access::UserBufferWriter, Syscall},
114 UserBufferWriter::new::<PosixTimeval>(tv, core::mem::size_of::<PosixTimeval>(), true)?; in gettimeofday()
119 Some(UserBufferWriter::new::<PosixTimeZone>( in gettimeofday()
145 let mut tp_buf = UserBufferWriter::new::<PosixTimeSpec>( in clock_gettime()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dsyscall.rs14 syscall::{user_access::UserBufferWriter, Syscall},
75 let mut writer = UserBufferWriter::new( in do_arch_prctl_64()
84 let mut writer = UserBufferWriter::new( in do_arch_prctl_64()
/DragonOS/kernel/src/net/event_poll/
H A Dsyscall.rs9 user_access::{UserBufferReader, UserBufferWriter},
56 let mut epds_writer = UserBufferWriter::new( in epoll_wait()
/DragonOS/kernel/src/process/
H A Dsyscall.rs35 user_access::{check_and_clone_cstr, check_and_clone_cstr_array, UserBufferWriter},
211 Some(UserBufferWriter::new( in wait4()
227 let mut rusage_buf = UserBufferWriter::new::<RUsage>( in wait4()
318 UserBufferWriter::new(addr.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in clone()
475 let mut writer = UserBufferWriter::new(rusage, core::mem::size_of::<RUsage>(), true)?; in get_rusage()
511 writer = Some(UserBufferWriter::new( in prlimit64()
554 UserBufferWriter::new(name, core::mem::size_of::<PosixOldUtsName>(), true)?; in uname()
H A Dexit.rs14 syscall::user_access::UserBufferWriter,
58 wstatus_buf: Option<UserBufferWriter<'_>>, in kernel_wait4()
H A Dfork.rs18 syscall::user_access::UserBufferWriter,
419 let mut writer = UserBufferWriter::new( in copy_process()
/DragonOS/kernel/src/driver/tty/
H A Dtty_job_control.rs9 user_access::{UserBufferReader, UserBufferWriter},
118 let mut user_writer = UserBufferWriter::new( in job_ctrl_ioctl()
H A Dtty_device.rs39 syscall::user_access::{UserBufferReader, UserBufferWriter},
370 let mut user_writer = UserBufferWriter::new( in ioctl()
H A Dtty_core.rs23 syscall::user_access::{UserBufferReader, UserBufferWriter},
182 let mut user_writer = UserBufferWriter::new( in tty_mode_ioctl()
/DragonOS/kernel/src/driver/tty/pty/
H A Dmod.rs17 syscall::user_access::{UserBufferReader, UserBufferWriter},
188 UserBufferWriter::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_get_lock()
212 UserBufferWriter::new(arg.as_ptr::<i32>(), core::mem::size_of::<i32>(), true)?; in pty_get_packet_mode()
H A Dunix98pty.rs21 syscall::user_access::UserBufferWriter,
97 UserBufferWriter::new(arg as *mut u32, core::mem::size_of::<u32>(), true)?; in ioctl()
/DragonOS/kernel/src/ipc/
H A Dsyscall.rs30 user_access::{UserBufferReader, UserBufferWriter},
59 let mut user_buffer = UserBufferWriter::new(fd, core::mem::size_of::<[c_int; 2]>(), true)?; in pipe2()
142 let r = UserBufferWriter::new(act, core::mem::size_of::<Sigaction>(), from_user); in sigaction()
214 UserBufferWriter::new(old_act, core::mem::size_of::<UserSigaction>(), from_user); in sigaction()
H A Dshm.rs14 syscall::user_access::{UserBufferReader, UserBufferWriter},
214 let mut user_buffer_writer = UserBufferWriter::new( in ipc_info()
237 let mut user_buffer_writer = UserBufferWriter::new( in shm_info()
279 let mut user_buffer_writer = UserBufferWriter::new( in shm_stat()
H A Dsignal_types.rs19 syscall::user_access::UserBufferWriter,
330 let mut user_buffer = UserBufferWriter::new(to, size_of::<SigInfo>(), true)?; in copy_siginfo_to_user()
/DragonOS/kernel/src/bpf/map/
H A Dmod.rs18 use crate::syscall::user_access::{UserBufferReader, UserBufferWriter};
293 let mut value_buf = UserBufferWriter::new(arg.value as *mut u8, value_size, true)?; in bpf_lookup_elem()
328 let mut next_key_buf = UserBufferWriter::new(arg.next_key as *mut u8, key_size, true)?; in bpf_map_get_next_key()
396 let mut value_buf = UserBufferWriter::new(arg.value as *mut u8, value_size, true)?; in bpf_map_lookup_and_delete_elem()
/DragonOS/kernel/src/arch/x86_64/ipc/
H A Dsignal.rs21 syscall::{user_access::UserBufferWriter, Syscall},
507 if UserBufferWriter::new(frame, size_of::<SigFrame>(), true).is_err() { in sys_rt_sigreturn()
624 let r: Result<UserBufferWriter<'_>, SystemError> = in setup_frame()
625 UserBufferWriter::new(frame, size_of::<SigFrame>(), true); in setup_frame()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs23 syscall::user_access::{UserBufferReader, UserBufferWriter},
724 let mut user_writer = UserBufferWriter::new( in get_robust_list()
731 let mut user_writer = UserBufferWriter::new( in get_robust_list()
805 let mut user_buffer_writer = UserBufferWriter::new( in handle_futex_death()
/DragonOS/kernel/src/filesystem/vfs/
H A Dsyscall.rs18 user_access::{self, check_and_clone_cstr, UserBufferWriter},
1334 let mut writer = UserBufferWriter::new(usr_kstat, size_of::<PosixKstat>(), true)?; in fstat()
1366 let mut writer = UserBufferWriter::new(user_statfs, size_of::<PosixStatfs>(), true)?; in statfs()
1386 let mut writer = UserBufferWriter::new(user_statfs, size_of::<PosixStatfs>(), true)?; in fstatfs()
1425 let mut writer = UserBufferWriter::new(usr_kstat, size_of::<PosixStatx>(), true)?; in do_statx()
1566 let mut user_buf = UserBufferWriter::new(user_buf, buf_size, true)?; in readlink_at()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs25 syscall::{user_access::UserBufferWriter, Syscall},
1842 let mut user_writer = UserBufferWriter::new( in ioctl()
1882 let mut user_writer = UserBufferWriter::new( in ioctl()
/DragonOS/kernel/src/mm/
H A Ducontext.rs31 syscall::user_access::{UserBufferReader, UserBufferWriter},
556 UserBufferWriter::new(new_page_vaddr.data() as *mut u8, new_len, true)?; in mremap()