Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmount.rs23 self_ref: Weak<MountFS>, field
34 self_ref: Weak<MountFSInode>, field
46 self_ref: Weak::default(), in new()
63 (*ptr).self_ref = weak; in wrap()
73 mount_fs: self.self_ref.upgrade().unwrap(), in mountpoint_root_inode()
74 self_ref: Weak::default(), in mountpoint_root_inode()
96 (*ptr).self_ref = weak; in wrap()
120 return self.self_ref.upgrade().unwrap(); in overlaid_inode()
210 self_ref: Weak::default(), in create()
259 "" | "." => return Ok(self.self_ref.upgrade().unwrap()), in find()
[all …]
/DragonOS-0.1.8/kernel/src/time/
Djiffies.rs31 self_ref: Weak<ClocksourceJiffies>, field
45 self.0.lock().self_ref.upgrade().unwrap() in clocksource()
77 self_ref: Default::default(), in new()
79 jieffies.0.lock().self_ref = Arc::downgrade(&jieffies); in new()
Dtimer.rs76 self_ref: Weak::default(), in new()
79 result.0.lock().self_ref = Arc::downgrade(&result); in new()
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()
135 self_ref: Weak<Timer>, field
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs105 root_guard.self_ref = Arc::downgrade(&sysfs.root_inode); in new()
249 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
304 parent: guard.self_ref.clone(), in do_create_with_data()
305 self_ref: Weak::default(), in do_create_with_data()
327 result.0.lock().self_ref = Arc::downgrade(&result); in do_create_with_data()
379 .self_ref in link()
405 self_ref: Weak<LockedSysFSInode>, field
427 self_ref: Weak::default(), in new_with_parent()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs20 self_ref: Weak<LockedNullInode>, field
34 self_ref: Weak::default(), in new()
55 result.0.lock().self_ref = Arc::downgrade(&result); in new()
Dzero_dev.rs20 self_ref: Weak<LockedZeroInode>, field
34 self_ref: Weak::default(), in new()
55 result.0.lock().self_ref = Arc::downgrade(&result); in new()
Dmod.rs63 root_guard.self_ref = Arc::downgrade(&devfs.root_inode); in new()
202 self_ref: Weak<LockedDevFSInode>, field
224 self_ref: Weak::default(), in new_with_parent()
307 parent: guard.self_ref.clone(), in do_create_with_data()
308 self_ref: Weak::default(), in do_create_with_data()
330 result.0.lock().self_ref = Arc::downgrade(&result); in do_create_with_data()
377 return Ok(inode.self_ref.upgrade().ok_or(SystemError::ENOENT)?); in find()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs45 self_ref: Weak<LockedRamFSInode>, field
80 self_ref: Weak::default(), in new()
107 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
250 parent: inode.self_ref.clone(), in create_with_data()
251 self_ref: Weak::default(), in create_with_data()
274 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
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()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs23 self_ref: Weak<LockedAhciInode>, field
39 self_ref: Weak::default(), in new()
61 result.0.lock().self_ref = Arc::downgrade(&result); in new()
Dahcidisk.rs34 self_ref: Weak<LockedAhciDisk>, field
377 self_ref: Weak::default(), in new()
397 result.0.lock().self_ref = weak_this; in new()
479 return self.0.lock().self_ref.upgrade().unwrap(); in device()
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs36 self_ref: Weak<LockedPS2KeyBoardInode>, field
49 self_ref: Weak::default(), in new()
74 result.0.write().self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs92 self_ref: Weak<LockedProcFSInode>, field
242 self_ref: Weak::default(), in new()
273 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
492 parent: inode.self_ref.clone(), in create_with_data()
493 self_ref: Weak::default(), in create_with_data()
520 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
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()
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs26 self_ref: Weak<LockedPipeInode>, field
40 self_ref: Weak::default(), in new()
67 guard.self_ref = Arc::downgrade(&result); in new()
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs806 r.0.lock().self_ref = Arc::downgrade(&r); in new()
904 return Some((None, guard.self_ref.upgrade().unwrap(), None)); in extract()
928 return Some((before, guard.self_ref.upgrade().unwrap(), after)); in extract()
943 self_ref: Weak<LockedVMA>, field
971 self_ref: self.self_ref.clone(), in clone()
1067 self_ref: Weak::default(), in physmap()
1115 self_ref: Weak::default(), in zeroed()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs93 self_ref: Weak<LockedFATInode>, field
139 self.self_ref.clone(), in find()
174 self_ref: Weak::default(), in new()
200 inode.0.lock().self_ref = Arc::downgrade(&inode); in new()
293 self_ref: Weak::default(), in new()
331 root_guard.self_ref = Arc::downgrade(&result.root_inode); in new()
1531 guard.self_ref.clone(), in list()