Home
last modified time | relevance | path

Searched refs:downgrade (Results 1 – 15 of 15) sorted by relevance

/DragonOS-0.1.7/docs/kernel/locking/
Drwlock.md111 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
124 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T>
163 let read_guard=guard.downgrade();
189 let read_guard=downgraded_guard.downgrade();
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/
Dmod.rs104 root_guard.parent = Arc::downgrade(&sysfs.root_inode); in new()
105 root_guard.self_ref = Arc::downgrade(&sysfs.root_inode); in new()
106 root_guard.fs = Arc::downgrade(&sysfs); in new()
325 result.0.lock().self_ref = Arc::downgrade(&result); in do_create_with_data()
/DragonOS-0.1.7/kernel/src/filesystem/ramfs/
Dmod.rs106 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
107 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
108 root_guard.fs = Arc::downgrade(&result); in new()
274 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
/DragonOS-0.1.7/kernel/src/filesystem/devfs/
Dmod.rs62 root_guard.parent = Arc::downgrade(&devfs.root_inode); in new()
63 root_guard.self_ref = Arc::downgrade(&devfs.root_inode); in new()
64 root_guard.fs = Arc::downgrade(&devfs); in new()
330 result.0.lock().self_ref = Arc::downgrade(&result); in do_create_with_data()
Dnull_dev.rs55 result.0.lock().self_ref = Arc::downgrade(&result); in new()
Dzero_dev.rs55 result.0.lock().self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dmount.rs58 let weak: Weak<MountFS> = Arc::downgrade(&mount_fs); in wrap()
92 let weak: Weak<MountFSInode> = Arc::downgrade(&inode); in wrap()
/DragonOS-0.1.7/kernel/src/filesystem/procfs/
Dmod.rs269 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
270 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
271 root_guard.fs = Arc::downgrade(&result); in new()
517 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dahci_inode.rs61 result.0.lock().self_ref = Arc::downgrade(&result); in new()
Dahcidisk.rs333 let weak_this: Weak<LockedAhciDisk> = Arc::downgrade(&result); // 获取this的弱指针 in new()
/DragonOS-0.1.7/kernel/src/libs/
Drwlock.rs314 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade() method
353 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade() method
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs74 result.0.write().self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.7/kernel/src/ipc/
Dpipe.rs67 guard.self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.7/kernel/src/time/
Dtimer.rs71 result.0.lock().self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.7/kernel/src/filesystem/fat/
Dfs.rs176 fs: Arc::downgrade(&fs), in new()
200 inode.0.lock().self_ref = Arc::downgrade(&inode); in new()
330 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
331 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
332 root_guard.fs = Arc::downgrade(&result); in new()