Searched refs:upgrade (Results 1 – 18 of 18) sorted by relevance
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mount.rs | 73 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/ |
D | disk_info.rs | 47 return self.disk.upgrade().unwrap(); in disk()
|
/DragonOS-0.1.8/docs/kernel/locking/ |
D | rwlock.md | 120 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/ |
D | mod.rs | 205 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/ |
D | fs.rs | 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() 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/ |
D | mod.rs | 193 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/ |
D | jiffies.rs | 45 self.0.lock().self_ref.upgrade().unwrap() in clocksource()
|
D | timer.rs | 93 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/ |
D | tty_device.rs | 217 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/ |
D | null_dev.rs | 85 return self.0.lock().fs.upgrade().unwrap(); in fs()
|
D | zero_dev.rs | 85 return self.0.lock().fs.upgrade().unwrap(); in fs()
|
D | mod.rs | 377 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/ |
D | mod.rs | 435 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/ |
D | ahci_inode.rs | 91 return self.0.lock().fs.upgrade().unwrap(); in fs()
|
D | ahcidisk.rs | 479 return self.0.lock().self_ref.upgrade().unwrap(); in device()
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 173 return self.0.read().fs.upgrade().unwrap(); in fs()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | rwlock.rs | 341 pub fn upgrade(mut self) -> RwLockWriteGuard<'rwlock, T> { in upgrade() method
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | ucontext.rs | 904 return Some((None, guard.self_ref.upgrade().unwrap(), None)); in extract() 928 return Some((before, guard.self_ref.upgrade().unwrap(), after)); in extract()
|