/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | symlink.rs | 25 kobj: Option<&Arc<dyn KObject>>, in create_link() 26 target: &Arc<dyn KObject>, in create_link() 41 pub fn remove_link(&self, _kobj: &Arc<dyn KObject>, _name: String) { in remove_link() 47 kobj: Option<&Arc<dyn KObject>>, in do_create_link() 48 target: &Arc<dyn KObject>, in do_create_link() 67 target: &Arc<dyn KObject>, in do_create_link_sd() 99 target: &Arc<dyn KObject>, in create_link_sd()
|
H A D | group.rs | 23 kobj: &Arc<dyn KObject>, in create_groups() 31 kobj: &Arc<dyn KObject>, in do_create_groups() 56 kobj: &Arc<dyn KObject>, in do_create_group() 110 kobj: &Arc<dyn KObject>, in remove_groups() 131 kobj: &Arc<dyn KObject>, in remove_group() 170 kobj: &Arc<dyn KObject>, in group_create_files()
|
H A D | mod.rs | 112 _kobj: Arc<dyn KObject>, in is_visible() 133 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 137 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 147 _kobj: Arc<dyn KObject>, in write() 156 _kobj: Arc<dyn KObject>, in read() 178 kobj: Arc<dyn KObject>, in show() 185 kobj: Arc<dyn KObject>, in store()
|
H A D | dir.rs | 36 pub fn kobj(&self) -> Option<Arc<dyn KObject>> { in kobj() 118 pub fn remove_dir(&self, kobj: &Arc<dyn KObject>) { in remove_dir()
|
H A D | file.rs | 35 kobj: &Arc<dyn KObject>, in new() 107 kobj: &Arc<dyn KObject>, in create_file() 181 pub fn remove_file(&self, kobj: &Arc<dyn KObject>, attr: &'static dyn Attribute) { in remove_file() 206 kobj: &Arc<dyn KObject>, in create_bin_file() 217 pub fn remove_bin_file(&self, kobj: &Arc<dyn KObject>, attr: &Arc<dyn BinAttribute>) { in remove_bin_file()
|
/DragonOS/kernel/src/driver/base/ |
H A D | kobject.rs | 26 pub trait KObject: Any + Send + Sync + Debug + CastFromSync { trait 35 fn parent(&self) -> Option<Weak<dyn KObject>>; in parent() 38 fn set_parent(&self, parent: Option<Weak<dyn KObject>>); in set_parent() 61 impl dyn KObject { implementation 71 impl DowncastArc for dyn KObject { implementation 87 pub fn get_parent_or_clear_weak(&mut self) -> Option<Weak<dyn KObject>> { in get_parent_or_clear_weak() 94 fn release(&self, _kobj: Arc<dyn KObject>) {} in release() 144 kobj: Arc<dyn KObject>, in show() 161 kobj: Arc<dyn KObject>, in store() 182 kobj: Arc<dyn KObject>, in init_and_add_kobj() [all …]
|
H A D | kset.rs | 75 parent_kobj: Option<Arc<dyn KObject>>, in new_and_add() 109 pub fn join(&self, kobj: &Arc<dyn KObject>) { in join() 116 pub fn leave(&self, kobj: &Arc<dyn KObject>) { in leave() 140 pub fn as_kobject(&self) -> Arc<dyn KObject> { in as_kobject() 144 pub fn kobjects(&self) -> RwLockReadGuard<Vec<Weak<dyn KObject>>> { in kobjects() 162 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 166 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() 214 fn new(parent: Option<Weak<dyn KObject>>, kset: Option<Arc<KSet>>) -> Self { in new()
|
H A D | class.rs | 61 fn dev_kobj(&self) -> Option<Arc<dyn KObject>>; in dev_kobj() 63 fn set_dev_kobj(&self, kobj: Arc<dyn KObject>); in set_dev_kobj() 169 _kobj: Arc<dyn KObject>, in show() 178 _kobj: Arc<dyn KObject>, in store()
|
H A D | cpu.rs | 217 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 221 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() 274 _kobj: Arc<dyn KObject>, in is_visible() 297 fn show(&self, _kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 321 fn show(&self, _kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbsysfs.rs | 41 _kobj: alloc::sync::Arc<dyn KObject>, in is_visible() 64 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 88 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 93 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 119 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 142 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 147 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 169 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 174 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 195 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() [all …]
|
/DragonOS/kernel/src/driver/pci/ |
H A D | attr.rs | 31 _kobj: Arc<dyn KObject>, in is_visible() 50 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 60 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 81 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 91 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 112 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 122 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 143 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 153 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store()
|
/DragonOS/kernel/src/driver/net/ |
H A D | sysfs.rs | 77 _kobj: Arc<dyn KObject>, in is_visible() 105 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 132 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 154 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 176 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 180 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 202 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 224 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 246 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 273 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() [all …]
|
H A D | class.rs | 68 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() 72 fn set_dev_kobj(&self, _kobj: Arc<dyn KObject>) { in set_dev_kobj()
|
/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 51 fn release(&self, _kobj: Arc<dyn KObject>) { in release() 83 _kobj: Arc<dyn KObject>, in is_visible() 151 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 182 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 208 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 239 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 265 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 295 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | sysfs.rs | 53 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() 57 fn set_dev_kobj(&self, _kobj: Arc<dyn KObject>) { in set_dev_kobj()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | sysfs.rs | 145 fn show(&self, _kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 208 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 212 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 235 _kobj: Arc<dyn KObject>, in write() 247 _kobj: Arc<dyn KObject>, in read()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | class.rs | 70 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj() 74 fn set_dev_kobj(&self, _kobj: Arc<dyn KObject>) { in set_dev_kobj()
|
H A D | sysfs.rs | 200 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 204 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() 279 _kobj: Arc<dyn KObject>, in is_visible() 304 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 333 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 357 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 380 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_device.rs | 156 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 160 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() 215 _kobj: Arc<dyn KObject>, in is_visible() 233 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 237 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 138 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 142 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() 265 _kobj: Arc<dyn KObject>, in is_visible() 289 fn show(&self, _kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 295 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 318 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 341 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 345 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store()
|
/DragonOS/kernel/src/misc/ |
H A D | ksysfs.rs | 59 _kobj: Arc<dyn KObject>, in is_visible()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | bus.rs | 610 fn store(&self, kobj: Arc<dyn KObject>, buf: &[u8]) -> Result<usize, SystemError> { in store() 648 fn store(&self, kobj: Arc<dyn KObject>, buf: &[u8]) -> Result<usize, SystemError> { in store() 668 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 723 kobj: Arc<dyn KObject>, in show() 733 kobj: Arc<dyn KObject>, in store() 753 fn store(&self, kobj: Arc<dyn KObject>, buf: &[u8]) -> Result<usize, SystemError> { in store() 802 fn store(&self, kobj: Arc<dyn KObject>, buf: &[u8]) -> Result<usize, SystemError> { in store() 852 parent_of_root: &Arc<dyn KObject>, in subsys_register()
|
H A D | mod.rs | 420 fn release(&self, kobj: Arc<dyn KObject>) { in release() 452 kobj: Arc<dyn KObject>, in store() 461 kobj: Arc<dyn KObject>, in show() 570 kobject_parent: Arc<dyn KObject>, in class_dir_create_and_add() 571 ) -> Arc<dyn KObject> { in class_dir_create_and_add() 612 ) -> Result<Option<Arc<dyn KObject>>, SystemError> { in get_device_parent() 857 fn device_to_dev_kobj(&self, _dev: &Arc<dyn Device>) -> Arc<dyn KObject> { in device_to_dev_kobj() 928 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 1073 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 1077 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
|
/DragonOS/kernel/src/driver/base/map/ |
H A D | mod.rs | 63 data: Arc<dyn KObject>, in kobj_map() 106 pub fn kobj_lookup(domain: Arc<LockedKObjMap>, dev_t: DeviceNumber) -> Option<Arc<dyn KObject>> { in kobj_lookup()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 141 parent: Option<Weak<dyn KObject>>, in new() 222 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent() 270 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
|