Home
last modified time | relevance | path

Searched refs:upgrade (Results 1 – 18 of 18) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmount.rs73 mount_fs: self.self_ref.upgrade().unwrap(), in mountpoint_root_inode()
120 return self.self_ref.upgrade().unwrap(); in overlaid_inode()
259 "" | "." => return Ok(self.self_ref.upgrade().unwrap()), in find()
269 return Ok(self.self_ref.upgrade().unwrap()); in find()
330 let new_mount_fs: Arc<MountFS> = MountFS::new(fs, Some(self.self_ref.upgrade().unwrap())); in mount()
/DragonOS-0.1.8/kernel/src/io/
Ddisk_info.rs47 return self.disk.upgrade().unwrap(); in disk()
/DragonOS-0.1.8/docs/kernel/locking/
Drwlock.md120 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T>
174 "Upgrader1 before upgrade: the value is {value}
177 let mut upgraded_guard = guard.upgrade();
182 "Upgrader1 after upgrade: the value is {temp}
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs205 return self.0.lock().fs.upgrade().unwrap(); in fs()
249 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
252 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
381 .upgrade() in link()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs115 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()
1366 &guard.fs.upgrade().unwrap(), in read_at()
1391 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in write_at()
1430 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in create()
1457 return self.0.lock().fs.upgrade().unwrap(); in fs()
1469 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in resize()
1516 let dir_iter: FATDirIter = dir.to_iter(guard.fs.upgrade().unwrap()); in list()
1530 guard.fs.upgrade().unwrap(), in list()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs193 return self.0.lock().fs.upgrade().unwrap(); in fs()
306 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link()
382 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
386 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
/DragonOS-0.1.8/kernel/src/time/
Djiffies.rs45 self.0.lock().self_ref.upgrade().unwrap() in clocksource()
Dtimer.rs93 timer_list.push_back(inner_guard.self_ref.upgrade().unwrap()); in activate()
109 timer_list.push_back(inner_guard.self_ref.upgrade().unwrap()); in activate()
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs217 return self.fs.read().upgrade().unwrap(); in fs()
307 let mut guard = guard.upgrade(); in tty_init()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs85 return self.0.lock().fs.upgrade().unwrap(); in fs()
Dzero_dev.rs85 return self.0.lock().fs.upgrade().unwrap(); in fs()
Dmod.rs377 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
380 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
390 return self.0.lock().fs.upgrade().unwrap(); in fs()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs435 return self.0.lock().fs.upgrade().unwrap(); in fs()
552 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link()
597 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
601 return Ok(inode.parent.upgrade().ok_or(SystemError::ENOENT)?); in find()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs91 return self.0.lock().fs.upgrade().unwrap(); in fs()
Dahcidisk.rs479 return self.0.lock().self_ref.upgrade().unwrap(); in device()
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs173 return self.0.read().fs.upgrade().unwrap(); in fs()
/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs341 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() method
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs904 return Some((None, guard.self_ref.upgrade().unwrap(), None)); in extract()
928 return Some((before, guard.self_ref.upgrade().unwrap(), after)); in extract()