/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 17 fs::{Cluster, FATFileSystem, MAX_FILE_SIZE}, 83 fs: &Arc<FATFileSystem>, in read() 92 let start_cluster_number: u64 = offset / fs.bytes_per_cluster(); in read() 95 fs.get_cluster_by_relative(self.first_cluster, start_cluster_number as usize) in read() 105 let mut in_cluster_offset: u64 = offset % fs.bytes_per_cluster(); in read() 113 if in_cluster_offset >= fs.bytes_per_cluster() { in read() 114 if let Some(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster).ok() { in read() 116 in_cluster_offset %= fs.bytes_per_cluster(); in read() 126 (fs.bytes_per_cluster() - in_cluster_offset) as usize, in read() 132 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_offset; in read() [all …]
|
D | mod.rs | 3 pub mod fs; module
|
D | fs.rs | 100 fs: Weak<FATFileSystem>, field 115 self.metadata.size = d.size(&self.fs.upgrade().unwrap().clone()) as i64; in update_metadata() 134 d.find_entry(name, None, None, self.fs.upgrade().unwrap())?; in find() 138 self.fs.upgrade().unwrap(), in find() 150 self.fs in find() 162 fs: Arc<FATFileSystem>, in new() 176 fs: Arc::downgrade(&fs), in new() 182 blk_size: fs.bpb.bytes_per_sector as usize, in new() 183 blocks: if let FATType::FAT32(_) = fs.bpb.fat_type { in new() 184 fs.bpb.total_sectors_32 as usize in new() [all …]
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 22 fs: Weak<DevFS>, field 35 fs: Weak::default(), in new() 62 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 63 self.0.lock().fs = fs; in set_fs() 84 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 85 return self.0.lock().fs.upgrade().unwrap(); in fs()
|
D | zero_dev.rs | 22 fs: Weak<DevFS>, field 35 fs: Weak::default(), in new() 62 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 63 self.0.lock().fs = fs; in set_fs() 84 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 85 return self.0.lock().fs.upgrade().unwrap(); in fs()
|
D | mod.rs | 64 root_guard.fs = Arc::downgrade(&devfs); in new() 124 device.set_fs(dev_char_inode.0.lock().fs.clone()); in register_device() 138 device.set_fs(dev_block_inode.0.lock().fs.clone()); in register_device() 206 fs: Weak<DevFS>, field 242 fs: Weak::default(), in new_with_parent() 326 fs: guard.fs.clone(), in do_create_with_data() 389 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 390 return self.0.lock().fs.upgrade().unwrap(); in fs() 497 fn set_fs(&self, fs: Weak<DevFS>); in set_fs() 515 let binding = devfs_inode.fs();
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 25 fs: Weak<DevFS>, field 40 fs: Weak::default(), in new() 68 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 69 self.0.lock().fs = fs; in set_fs() 90 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 91 return self.0.lock().fs.upgrade().unwrap(); in fs()
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 38 fs: Weak<DevFS>, field 50 fs: Weak::default(), in new() 81 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 82 self.0.write().fs = fs; in set_fs() 172 fn fs(&self) -> alloc::sync::Arc<dyn crate::filesystem::vfs::FileSystem> { in fs() method 173 return self.0.read().fs.upgrade().unwrap(); in fs()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 22 pub mod fs; module 106 root_guard.fs = Arc::downgrade(&sysfs); in new() 134 Ok(fs) => unsafe { in new() 135 __SYS_FS_INODE = Box::leak(Box::new(fs)); in new() 204 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 205 return self.0.lock().fs.upgrade().unwrap(); in fs() 323 fs: guard.fs.clone(), in do_create_with_data() 409 fs: Weak<SysFS>, field 445 fs: Weak::default(), in new_with_parent()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.c | 67 .fs = KERNEL_DS, 119 : "=a"(prev->thread->fs)); in __switch_to() 123 __asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs)); in __switch_to() 134 void process_switch_fsgs(uint64_t fs, uint64_t gs) in process_switch_fsgs() argument 136 asm volatile("movq %0, %%fs \n\t" ::"a"(fs)); in process_switch_fsgs() 207 current_pcb->thread->fs = USER_DS | 0x3; in initial_kernel_thread() 210 process_switch_fsgs(current_pcb->thread->fs, current_pcb->thread->gs); in initial_kernel_thread()
|
D | proc-types.h | 53 ul fs, gs; member
|
D | fork.c | 281 thd->fs = current_pcb->thread->fs; in process_copy_thread()
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 32 fs: RwLock<Weak<DevFS>>, field 50 fs: RwLock::new(Weak::default()), in new() 105 fn set_fs(&self, fs: alloc::sync::Weak<crate::filesystem::devfs::DevFS>) { in set_fs() 106 *self.fs.write() = fs; in set_fs() 216 fn fs(&self) -> Arc<dyn crate::filesystem::vfs::FileSystem> { in fs() method 217 return self.fs.read().upgrade().unwrap(); in fs()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | core.rs | 13 fat::fs::FATFileSystem, 114 fs: &MountFS, in do_migrate() 126 .mount(fs.inner_filesystem()) in do_migrate() 137 let binding = ROOT_INODE().find("proc").expect("ProcFS not mounted!").fs(); in migrate_virtual_filesystem() 139 let binding = ROOT_INODE().find("dev").expect("DevFS not mounted!").fs(); in migrate_virtual_filesystem() 141 let binding = ROOT_INODE().find("sys").expect("SysFs not mounted!").fs(); in migrate_virtual_filesystem()
|
D | mount.rs | 105 return Ok(self.inner_inode.fs().root_inode().metadata()?.inode_id in is_mountpoint_root() 176 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 323 fn mount(&self, fs: Arc<dyn FileSystem>) -> Result<Arc<MountFS>, SystemError> { in mount() 330 let new_mount_fs: Arc<MountFS> = MountFS::new(fs, Some(self.self_ref.upgrade().unwrap())); in mount()
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 100 fs: Weak<ProcFS>, field 261 fs: Weak::default(), in new() 274 root_guard.fs = Arc::downgrade(&result); in new() 434 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 435 return self.0.lock().fs.upgrade().unwrap(); in fs() 512 fs: inode.fs.clone(), in create_with_data() 674 let fs = procfs_inode.fs(); in procfs_register_pid() localVariable 675 let procfs: &ProcFS = fs.as_any_ref().downcast_ref::<ProcFS>().unwrap(); in procfs_register_pid() 701 let fs: Arc<dyn FileSystem> = procfs_inode.fs(); in procfs_unregister_pid() localVariable 702 let procfs: &ProcFS = fs.as_any_ref().downcast_ref::<ProcFS>().unwrap(); in procfs_unregister_pid()
|
/DragonOS-0.1.8/kernel/src/smp/ |
D | apu_boot.S | 18 mov %ax, %fs 64 mov %ax, %fs
|
D | smp.c | 188 current_pcb->thread->fs = KERNEL_DS; in smp_ap_start()
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 53 fs: Weak<RamFS>, field 99 fs: Weak::default(), in new() 108 root_guard.fs = Arc::downgrade(&result); in new() 192 fn fs(&self) -> Arc<dyn FileSystem> { in fs() method 193 return self.0.lock().fs.upgrade().unwrap(); in fs() 270 fs: inode.fs.clone(), in create_with_data()
|
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.6.md | 125 - rcore-fs - https://github.com/rcore-os/rcore-fs.git - MIT 242 * fix(fat): fix determination of fat type casue crash if fs is fat12/16
|
D | V0.1.3.md | 39 - process: bugfix: 修复init进程忘记设定fs gs寄存器的问题。 (#132) 130 - rcore-fs - https://github.com/rcore-os/rcore-fs.git - MIT 278 修复init进程忘记设定fs gs寄存器的问题。 (#132)
|
D | V0.1.4.md | 117 - rcore-fs - https://github.com/rcore-os/rcore-fs.git - MIT
|
D | V0.1.7.md | 140 - rcore-fs - https://github.com/rcore-os/rcore-fs.git - MIT
|
D | V0.1.5.md | 125 - rcore-fs - https://github.com/rcore-os/rcore-fs.git - MIT
|
/DragonOS-0.1.8/kernel/src/ |
D | head.S | 211 mov %ax, %fs 241 mov %ax, %fs
|