Home
last modified time | relevance | path

Searched defs:KObject (Results 1 – 25 of 52) sorted by relevance

123

/DragonOS/kernel/src/filesystem/sysfs/
H A Dsymlink.rs25 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 Dgroup.rs23 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 Dmod.rs112 _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 Ddir.rs36 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 Dfile.rs35 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 Dkobject.rs26 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 Dkset.rs75 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 Dclass.rs61 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()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbsysfs.rs41 _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 …]
H A Dfbmem.rs104 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj()
108 fn set_dev_kobj(&self, _kobj: Arc<dyn KObject>) { in set_dev_kobj()
286 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
290 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
/DragonOS/kernel/src/driver/pci/
H A Dattr.rs31 _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 Dsysfs.rs77 _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 Dclass.rs68 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 Dsysfs.rs51 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 Dsysfs.rs53 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 Dsysfs.rs145 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/pci/test/
H A Dpt_device.rs156 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/rtc/
H A Dclass.rs70 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 Dsysfs.rs199 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
203 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
278 _kobj: Arc<dyn KObject>, in is_visible()
303 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
332 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
356 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
379 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs138 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/driver/base/device/
H A Dbus.rs610 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 Dmod.rs420 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/misc/
H A Dksysfs.rs59 _kobj: Arc<dyn KObject>, in is_visible()
/DragonOS/kernel/src/driver/base/map/
H A Dmod.rs63 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 Dplatform_device.rs137 parent: Option<Weak<dyn KObject>>, in new()
218 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
266 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()

123