Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/process/
H A Dsyscall.rs317 let mut writer = in clone() localVariable
319 writer.copy_one_to_user(&(pcb.pid().data() as i32), 0)?; in clone()
475 let mut writer = UserBufferWriter::new(rusage, core::mem::size_of::<RUsage>(), true)?; in get_rusage() localVariable
479 let ubuf = writer.buffer::<RUsage>(0).unwrap(); in get_rusage()
508 let mut writer = None; in prlimit64() localVariable
511 writer = Some(UserBufferWriter::new( in prlimit64()
520 if let Some(mut writer) = writer { in prlimit64()
521 let mut rlimit = writer.buffer::<RLimit64>(0).unwrap()[0]; in prlimit64()
529 if let Some(mut writer) = writer { in prlimit64()
530 let mut rlimit = writer.buffer::<RLimit64>(0).unwrap()[0]; in prlimit64()
[all …]
H A Dmod.rs231 let mut writer = pcb.sched_info().inner_lock_write_irqsave(); in wakeup() localVariable
232 let state = writer.state(); in wakeup()
234 writer.set_state(ProcessState::Runnable); in wakeup()
235 writer.set_wakeup(); in wakeup()
238 drop(writer); in wakeup()
271 let mut writer = pcb.sched_info().inner_lock_write_irqsave(); in wakeup_stop() localVariable
272 let state = writer.state(); in wakeup_stop()
274 writer.set_state(ProcessState::Runnable); in wakeup_stop()
276 drop(writer); in wakeup_stop()
316 let mut writer = pcb.sched_info().inner_lock_write_irqsave(); in mark_sleep() localVariable
[all …]
H A Dfork.rs419 let mut writer = UserBufferWriter::new( in copy_process() localVariable
425 writer.copy_one_to_user(&(pcb.pid().0 as i32), 0)?; in copy_process()
/DragonOS/kernel/src/syscall/
H A Dmisc.rs37 let mut writer = UserBufferWriter::new(info, core::mem::size_of::<SysInfo>(), true)?; in sysinfo() localVariable
56 writer.copy_one_to_user(&sysinfo, 0)?; in sysinfo()
73 let mut writer = UserBufferWriter::new(buf, len, true)?; in get_random() localVariable
88 writer.copy_to_user(&ret, 0)?; in get_random()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dsyscall.rs75 let mut writer = UserBufferWriter::new( in do_arch_prctl_64() localVariable
80 writer.copy_one_to_user(&arch_info.fsbase, 0)?; in do_arch_prctl_64()
84 let mut writer = UserBufferWriter::new( in do_arch_prctl_64() localVariable
89 writer.copy_one_to_user(&arch_info.gsbase, 0)?; in do_arch_prctl_64()
/DragonOS/kernel/src/ipc/
H A Dpipe.rs61 writer: u32, field
82 if self.writer == 0 { in poll()
153 writer: 0, in new()
174 return inode.valid_cnt > 0 || inode.writer == 0; in readable()
211 if inode.writer == 0 { in read_at()
290 guard.writer += 1; in open()
318 assert!(guard.writer > 0); in close()
319 guard.writer -= 1; in close()
321 if guard.writer == 0 { in close()
/DragonOS/kernel/src/libs/
H A Dwait_queue.rs53 let mut writer = pcb.sched_info().inner_lock_write_irqsave(); in finish_wait() localVariable
56 writer.set_state(ProcessState::Runnable); in finish_wait()
57 writer.set_wakeup(); in finish_wait()
61 drop(writer); in finish_wait()
/DragonOS/kernel/src/filesystem/vfs/
H A Dsyscall.rs1334 let mut writer = UserBufferWriter::new(usr_kstat, size_of::<PosixKstat>(), true)?; in fstat() localVariable
1337 writer.copy_one_to_user(&kstat, 0)?; in fstat()
1366 let mut writer = UserBufferWriter::new(user_statfs, size_of::<PosixStatfs>(), true)?; in statfs() localVariable
1381 writer.copy_one_to_user(&statfs, 0)?; in statfs()
1386 let mut writer = UserBufferWriter::new(user_statfs, size_of::<PosixStatfs>(), true)?; in fstatfs() localVariable
1394 writer.copy_one_to_user(&statfs, 0)?; in fstatfs()
1425 let mut writer = UserBufferWriter::new(usr_kstat, size_of::<PosixStatx>(), true)?; in do_statx() localVariable
1501 writer.copy_one_to_user(&tmp, 0)?; in do_statx()