Home
last modified time | relevance | path

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

/DragonOS-0.1.8/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.8/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()
327 result.0.lock().self_ref = Arc::downgrade(&result); in do_create_with_data()
/DragonOS-0.1.8/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.8/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.8/kernel/src/time/
Djiffies.rs79 jieffies.0.lock().self_ref = Arc::downgrade(&jieffies); in new()
Dtimer.rs79 result.0.lock().self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.8/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.8/kernel/src/filesystem/procfs/
Dmod.rs272 root_guard.parent = Arc::downgrade(&result.root_inode); in new()
273 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
274 root_guard.fs = Arc::downgrade(&result); in new()
520 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs61 result.0.lock().self_ref = Arc::downgrade(&result); in new()
Dahcidisk.rs381 let weak_this: Weak<LockedAhciDisk> = Arc::downgrade(&result); // 获取this的弱指针 in new()
/DragonOS-0.1.8/kernel/src/libs/
Drwlock.rs355 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade() method
408 pub fn downgrade(self) -> RwLockReadGuard<'rwlock, T> { in downgrade() method
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs74 result.0.write().self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs67 guard.self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.8/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()
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs806 r.0.lock().self_ref = Arc::downgrade(&r); in new()