Home
last modified time | relevance | path

Searched defs:r (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/process/
Dc_adapter.rs29 let r = current_pcb().init_files(); in process_init_files() localVariable
54 let r = current_pcb().copy_files(clone_flags, from); in process_copy_files() localVariable
69 let r: Result<(), SystemError> = pcb.exit_files(); in process_exit_files() localVariable
109 let r = init_stdio(); in rs_init_stdio() localVariable
Dprocess.rs197 let r: Option<&mut FileDescriptorVec> = FileDescriptorVec::from_pcb(current_pcb()); in alloc_fd() localVariable
239 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_mut_by_fd() localVariable
253 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in get_file_ref_by_fd() localVariable
265 let r: &mut FileDescriptorVec = FileDescriptorVec::from_pcb(current_pcb()).unwrap(); in drop_fd() localVariable
Dfork.rs28 let r = RefCount::convert_mut(unsafe { &mut (*(current_pcb().sighand)).count }).unwrap(); in process_copy_sighand() localVariable
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs87 let r: Result<usize, TtyError> = self.core.input(buf, false); in input() localVariable
92 let r = r.unwrap_err(); in input() localVariable
159 let r: Result<usize, TtyError> = self.core.read_stdin(&mut buf[0..len], true); in read_at() localVariable
194 let r: Result<usize, TtyError> = if data.flags.contains(TtyFileFlag::STDOUT) { in write_at() localVariable
207 let r: TtyError = r.unwrap_err(); in write_at() localVariable
242 let r: Result<usize, TtyError> = self.core.output(&mut buf[0..511], false); in sync() localVariable
282 let r = tty_init(); in rs_tty_init() localVariable
313 let r = devfs_register(&tty.name(), tty); in tty_init() localVariable
Dmod.rs202 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.stdin_tx.try_send_ref(); in write_stdin() localVariable
267 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.output_tx.try_send_ref(); in write_output() localVariable
/DragonOS-0.1.8/kernel/src/time/
Dtimekeep.rs21 let r = rtc_time.get(); in ktime_get_real() localVariable
Dsyscall.rs61 let r: Result<usize, SystemError> = nanosleep(slt_spec).map(|slt_spec| { in nanosleep() localVariable
Dtimer.rs117 let r = self.0.lock().timer_func.run(); in run() localVariable
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs143 let r: Result<(String, Vec<String>, Vec<String>), SystemError> = x(); in rs_do_execve() localVariable
168 let r = tmp_rs_execve(path, argv, envp, regs); in rs_exec_init_process() localVariable
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs378 let r = r.lock().region; in munmap() localVariable
379 let r = self.mappings.remove_vma(&r).unwrap(); in munmap() localVariable
432 let r = r.lock().region().clone(); in mprotect() localVariable
433 let r = self.mappings.remove_vma(&r).unwrap(); in mprotect() localVariable
619 let r = self in conflicts() localVariable
805 let r = Arc::new(Self(SpinLock::new(vma))); in new() localVariable
833 let r = unsafe { in remap() localVariable
998 let r = unsafe { in remap() localVariable
1045 let r = unsafe { in physmap() localVariable
1062 let r: Arc<LockedVMA> = LockedVMA::new(VMA { in physmap() localVariable
[all …]
Dsyscall.rs96 let r = unsafe { address_space.sbrk(incr) }; in sbrk() localVariable
Dpage.rs237 let mut r = unsafe { in new() localVariable
293 let r = Self::from_data(Arch::ENTRY_FLAG_DEFAULT_TABLE | Arch::ENTRY_FLAG_READWRITE); in new_page_table() localVariable
/DragonOS-0.1.8/kernel/src/
Dlib.rs110 let r = net_init(); in __rust_demo_func() localVariable
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dcore.rs116 let r = new_root_inode.find(mountpoint_name); in do_migrate() localVariable
190 let r = migrate_virtual_filesystem(fatfs); in mount_root_fs() localVariable
Dsyscall.rs184 let r = current_pcb().alloc_fd(file, None).map(|fd| fd as usize); in open() localVariable
566 let r = file.ftruncate(len).map(|_| 0); in ftruncate() localVariable
Dfile.rs368 let r: Result<(), SystemError> = self.inode.close(&mut self.private_data); in drop() localVariable
Dmount.rs241 let r = self.inner_inode.rmdir(name); in rmdir() localVariable
/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs117 let r = self.inner_try_read(); in try_read() localVariable
181 let r = self.inner_try_write(); in try_write() localVariable
224 let r = self.inner_try_upgradeable_read(); in try_upgradeable_read() localVariable
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui-render.c17 #define calculate_color(r, g, b) ((((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff)) & 0x00fffff… argument
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs409 let r = match syscall_num { in handle() localVariable
534 let r: Result<&str, SystemError> = chdir_check(args[0]); in handle() localVariable
762 let r = security_check(); in handle() localVariable
844 let r = security_check(); in handle() localVariable
871 let r = security_check(); in handle() localVariable
910 let r = security_check(); in handle() localVariable
996 let r = r.unwrap_or_else(|e| e.to_posix_errno() as usize); in handle() localVariable
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs44 let r = ahci_rust_init(); in ahci_init() localVariable
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs1185 let r = self.umount(); in drop() localVariable
1365 let r = f.read( in read_at() localVariable
1395 let r = f.write(fs, &buf[0..len], offset as u64); in write_at() localVariable
1585 let r = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in unlink() localVariable
1612 let r: Result<(), SystemError> = in rmdir() localVariable
1617 let r = r.unwrap_err(); in rmdir() localVariable
Dentry.rs133 let r = fs.partition.disk().device().read_at( in read() localVariable
557 let r: Result<FATDirEntryOrShortName, SystemError> = in create_file() localVariable
596 let r: Result<FATDirEntryOrShortName, SystemError> = in create_dir() localVariable
2324 let r: (Cluster, u64) = self.current_offset; in next() localVariable
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs102 let r = unsafe { in read_at() localVariable
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs659 let r = procfs_register_pid(pid); in rs_procfs_register_pid() localVariable
685 let r = procfs_unregister_pid(pid); in rs_procfs_unregister_pid() localVariable

12