/DragonOS/docs/_static/ |
H A D | dragonos-logo.svg | 1 …class="cls-1" points="228.49 0 0 86.68 260.25 772.69 435.59 545.91 228.49 0"/><polygon class="cls-…
|
/DragonOS/kernel/src/driver/base/ |
H A D | class.rs | 121 pub fn class_register(&self, class: &Arc<dyn Class>) -> Result<(), SystemError> { in class_register() 122 let subsystem = class.subsystem(); in class_register() 124 subsys.set_name(class.name().to_string()); in class_register() 126 if class.dev_kobj().is_none() { in class_register() 127 class.set_dev_kobj(sys_dev_char_kset() as Arc<dyn KObject>); in class_register() 131 subsystem.set_class(Some(Arc::downgrade(class))); in class_register() 135 sysfs_instance().create_groups(&(subsys as Arc<dyn KObject>), class.class_groups())?; in class_register() 142 pub fn class_unregister(&self, class: &Arc<dyn Class>) { in class_unregister() 143 let subsystem = class.subsystem(); in class_unregister() 145 sysfs_instance().remove_groups(&(subsys.clone() as Arc<dyn KObject>), class.class_groups()); in class_unregister()
|
H A D | subsys.rs | 19 class::Class, 38 class: SpinLock<Option<Weak<dyn Class>>>, field 69 class: Option<Weak<dyn Class>>, in new() 78 class: SpinLock::new(class), in new() 106 pub fn class(&self) -> Option<Weak<dyn Class>> { in class() method 107 let mut guard = self.class.lock(); in class() 116 pub fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 117 *self.class.lock() = class; in set_class()
|
H A D | mod.rs | 3 pub mod class; module
|
H A D | init.rs | 5 class::classes_init,
|
/DragonOS/kernel/src/driver/pci/ |
H A D | dev_id.rs | 15 class: u32, field 37 class: PCI_ANY_ID, in dummpy() 70 return (self.class ^ id.class()) & self.class_mask == 0; in class_check() 89 pub fn class(&self) -> u32 { in class() method 90 self.class in class()
|
H A D | raw_device.rs | 10 class::Class, 94 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 96 let r = guard.device_common.class.clone()?.upgrade(); in class() 98 guard.device_common.class = None; in class() 130 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 131 self.inner.write().device_common.class = class; in set_class()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 10 class::Class, 73 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 74 self.inner().device_common.class = class; in set_class() 77 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 79 let r = guard.device_common.class.clone()?.upgrade(); in class() 81 guard.device_common.class = None; in class()
|
H A D | i8042_device.rs | 8 class::Class, 76 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 78 let r = guard.device_common.class.clone()?.upgrade(); in class() 80 guard.device_common.class = None; in class() 85 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 86 self.inner().device_common.class = class; in set_class()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 40 class::{Class, ClassKObjbectType}, 170 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 177 fn set_class(&self, class: Option<Weak<dyn Class>>); in set_class() 221 pub class: Option<Weak<dyn Class>>, field 232 class: None, in default() 253 driver_base_macros::get_weak_or_clear!(self.class) in get_class_weak_or_clear() 554 if let Some(class) = device.class() { in add_device() 555 class.subsystem().add_device_to_vec(&device)?; in add_device() 557 for class_interface in class.subsystem().interfaces() { in add_device() 569 class: Arc<dyn Class>, in class_dir_create_and_add() [all …]
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_device.rs | 12 class::Class, 84 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 86 let r = guard.class.clone()?.upgrade(); in class() 88 guard.class = None; in class() 122 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 123 self.device_data.write().class = class in set_class()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 10 class::Class, 31 class::sys_class_rtc_instance, 137 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 138 self.inner().device_common.class = class; in set_class() 141 fn class(&self) -> Option<Arc<dyn Class>> { in class() method
|
H A D | class.rs | 11 class::{class_manager, Class},
|
H A D | mod.rs | 15 pub mod class; module
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 15 class::Class, 125 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 126 self.inner().device_common.class = class; in set_class() 129 fn class(&self) -> Option<Arc<dyn Class>> { in class() method
|
/DragonOS/kernel/src/driver/net/ |
H A D | loopback.rs | 2 use crate::driver::base::class::Class; 392 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 394 let r = guard.device_common.class.clone()?.upgrade(); in class() 396 guard.device_common.class = None; in class() 402 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 403 self.inner().device_common.class = class; in set_class()
|
H A D | virtio_net.rs | 24 class::Class, 209 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 211 let r = guard.device_common.class.clone()?.upgrade(); in class() 213 guard.device_common.class = None; in class() 219 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 220 self.inner().device_common.class = class; in set_class() 461 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 463 let r = guard.device_common.class.clone()?.upgrade(); in class() 465 guard.device_common.class = None; in class() 471 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() [all …]
|
H A D | mod.rs | 12 pub mod class; module
|
H A D | class.rs | 3 class::{class_manager, Class},
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 7 class::Class, 253 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 255 let r = guard.device_common.class.clone()?.upgrade(); in class() 257 guard.device_common.class = None; in class() 263 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 264 self.inner().device_common.class = class; in set_class()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 9 class::Class, 321 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 322 self.inner().device_common.class = class; in set_class()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 16 class::Class, 446 fn set_class(&self, class: Option<alloc::sync::Weak<dyn Class>>) { in set_class() 447 self.inner().device_common.class = class; in set_class() 472 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 474 let r = guard.device_common.class.clone()?.upgrade(); in class() 476 guard.device_common.class = None; in class()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 23 class::Class, 366 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 368 let r = guard.device_common.class.clone()?.upgrade(); in class() 370 guard.device_common.class = None; in class() 376 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 377 self.inner().device_common.class = class; in set_class()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | sysfs.rs | 10 class::{class_manager, Class},
|
/DragonOS/kernel/src/driver/video/fbdev/ |
H A D | vesafb.rs | 15 class::Class, 170 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class() 171 self.inner().device_common.class = class; in set_class() 174 fn class(&self) -> Option<Arc<dyn Class>> { in class() method 177 let r = guard.device_common.class.clone()?.upgrade(); in class() 180 guard.device_common.class = None; in class()
|