/DragonOS/kernel/src/driver/base/ |
H A D | hypervisor.rs | 5 use super::kset::KSet; 8 static mut HYPERVISOR_KSET_INSTANCE: Option<Arc<KSet>> = None; 12 pub fn sys_hypervisor_kset() -> Arc<KSet> { in sys_hypervisor_kset() 18 let hypervisor_kset = KSet::new("hypervisor".to_string()); in hypervisor_init()
|
H A D | firmware.rs | 5 use super::kset::KSet; 8 static mut FIRMWARE_KSET_INSTANCE: Option<Arc<KSet>> = None; 12 pub fn sys_firmware_kset() -> Arc<KSet> { in sys_firmware_kset() 18 let firmware_kset = KSet::new("firmware".to_string()); in firmware_init()
|
H A D | kset.rs | 19 pub struct KSet { struct 28 self_ref: Weak<KSet>, argument 31 impl Hash for KSet { implementation 38 impl core::cmp::Eq for KSet {} implementation 40 impl core::cmp::PartialEq for KSet { implementation 46 impl KSet { impl 76 join_kset: Option<Arc<KSet>>, in new_and_add() argument 78 let kset = KSet::new(name); in new_and_add() 91 pub fn register(&self, join_kset: Option<Arc<KSet>>) -> Result<(), SystemError> { in register() 149 impl KObject for KSet { implementation [all …]
|
H A D | subsys.rs | 26 kset::KSet, 33 subsys: Arc<KSet>, 51 devices_kset: Option<Arc<KSet>>, 53 drivers_kset: Option<Arc<KSet>>, 72 let subsys = KSet::new(name); in new() 90 pub fn subsys(&self) -> Arc<KSet> { in subsys() argument 139 pub fn devices_kset(&self) -> Option<Arc<KSet>> { in devices_kset() argument 145 pub fn set_devices_kset(&self, devices_kset: Arc<KSet>) { in set_devices_kset() argument 151 pub fn drivers_kset(&self) -> Option<Arc<KSet>> { in drivers_kset() argument 155 pub fn set_drivers_kset(&self, drivers_kset: Arc<KSet>) { in set_drivers_kset() argument
|
H A D | class.rs | 8 kset::KSet, 15 static mut CLASS_KSET_INSTANCE: Option<Arc<KSet>> = None; 19 pub fn sys_class_kset() -> Arc<KSet> { in sys_class_kset() 25 let class_kset = KSet::new("class".to_string()); in classes_init()
|
H A D | kobject.rs | 24 use super::kset::KSet; 41 fn kset(&self) -> Option<Arc<KSet>>; in kset() argument 44 fn set_kset(&self, kset: Option<Arc<KSet>>); in set_kset() argument 82 pub kset: Option<Arc<KSet>>, 183 join_kset: Option<Arc<KSet>>, in init_and_add_kobj() argument 196 join_kset: Option<Arc<KSet>>, in add_kobj() argument
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | init.rs | 10 kset::KSet, 18 let devices_kset = KSet::new("devices".to_string()); in devices_init() 33 let virtual_kset = KSet::new("virtual".to_string()); in devices_init() 45 let dev_kset = KSet::new("dev".to_string()); in devices_init() 56 let dev_block_kset = KSet::new("block".to_string()); in devices_init() 71 let dev_char_kset = KSet::new("char".to_string()); in devices_init()
|
H A D | bus.rs | 9 kset::KSet, 32 static mut BUS_KSET_INSTANCE: Option<Arc<KSet>> = None; 34 static mut DEVICES_SYSTEM_KSET_INSTANCE: Option<Arc<KSet>> = None; 39 pub fn sys_bus_kset() -> Arc<KSet> { in sys_bus_kset() 45 pub fn sys_devices_system_kset() -> Arc<KSet> { in sys_devices_system_kset() 242 kset_bus_map: RwLock<HashMap<Arc<KSet>, Arc<dyn Bus>>>, 371 KSet::new_and_add("devices".to_string(), None, Some(subsys_kset.clone()))?; in register() 374 KSet::new_and_add("drivers".to_string(), None, Some(subsys_kset.clone()))?; in register() 430 fn get_bus_by_kset(&self, kset: &Arc<KSet>) -> Option<Arc<dyn Bus>> { in get_bus_by_kset() 533 let bus_kset = KSet::new("bus".to_string()); in buses_init() [all …]
|
H A D | mod.rs | 44 kset::KSet, 74 static mut DEVICES_KSET_INSTANCE: Option<Arc<KSet>> = None; 76 static mut DEV_KSET_INSTANCE: Option<Arc<KSet>> = None; 78 static mut DEV_BLOCK_KSET_INSTANCE: Option<Arc<KSet>> = None; 80 static mut DEV_CHAR_KSET_INSTANCE: Option<Arc<KSet>> = None; 83 static mut DEVICES_VIRTUAL_KSET_INSTANCE: Option<Arc<KSet>> = None; 87 pub fn sys_devices_kset() -> Arc<KSet> { in sys_devices_kset() 93 pub(super) fn sys_dev_kset() -> Arc<KSet> { in sys_dev_kset() 100 pub fn sys_dev_block_kset() -> Arc<KSet> { in sys_dev_block_kset() 106 pub fn sys_dev_char_kset() -> Arc<KSet> { in sys_dev_char_kset() [all …]
|
/DragonOS/kernel/src/misc/ |
H A D | ksysfs.rs | 2 driver::base::{kobject::KObject, kset::KSet}, 15 static mut KERNEL_KSET_INSTANCE: Option<Arc<KSet>> = None; 19 pub fn sys_kernel_kset() -> Arc<KSet> { in sys_kernel_kset() 25 let kernel_kset = KSet::new("kernel".to_string()); in ksysfs_init()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | sysfs.rs | 4 base::{kobject::KObject, kset::KSet}, 26 static mut __HOTPLUG_KSET_INSTANCE: Option<Arc<KSet>> = None; 27 static mut __ACPI_TABLES_KSET_INSTANCE: Option<Arc<KSet>> = None; 28 static mut __ACPI_TABLES_DATA_KSET_INSTANCE: Option<Arc<KSet>> = None; 29 static mut __ACPI_TABLES_DYNAMIC_KSET_INSTANCE: Option<Arc<KSet>> = None; 36 pub fn hotplug_kset() -> Arc<KSet> { in hotplug_kset() 41 pub fn acpi_tables_kset() -> Arc<KSet> { in acpi_tables_kset() 47 pub fn acpi_tables_data_kset() -> Arc<KSet> { in acpi_tables_data_kset() 53 pub fn acpi_tables_dynamic_kset() -> Arc<KSet> { in acpi_tables_dynamic_kset() 71 let hotplug_kset = KSet::new("hotplug".to_string()); in acpi_sysfs_init() [all …]
|
H A D | mod.rs | 19 use super::base::kset::KSet; 30 static mut ACPI_KSET_INSTANCE: Option<Arc<KSet>> = None; 40 pub fn acpi_kset() -> Arc<KSet> { in acpi_kset() 63 let kset = KSet::new("acpi".to_string()); in init()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_driver.rs | 12 kset::KSet, 56 kset: Option<Arc<KSet>>, 155 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 159 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
H A D | i8042_ports.rs | 13 kset::KSet, 138 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 142 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
H A D | i8042_device.rs | 13 kset::KSet, 141 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 145 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/exception/ |
H A D | sysfs.rs | 9 kset::KSet, 28 static mut SYS_KERNEL_IRQ_KSET_INSTANCE: Option<Arc<KSet>> = None; 32 pub fn sys_kernel_irq_kset() -> Arc<KSet> { in sys_kernel_irq_kset() 97 let irq_kset = KSet::new("irq".to_string()); in irq_sysfs_init()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | device_node.rs | 4 kset::KSet, 125 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 129 fn set_kset(&self, _kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 16 kset::KSet, 136 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 140 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
H A D | pt_device.rs | 15 kset::KSet, 190 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 194 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/driver/pci/ |
H A D | device.rs | 13 kset::KSet, 156 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 182 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
H A D | raw_device.rs | 13 kset::KSet, 196 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 200 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_driver.rs | 16 kset::KSet, 118 kset: Option<Arc<KSet>>, 180 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 184 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 23 kset::KSet, 324 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 328 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument 389 kset: Option<Arc<KSet>>, 523 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 527 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 23 kset::KSet, 170 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 174 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_device.rs | 17 kset::KSet, 242 fn kset(&self) -> Option<Arc<KSet>> { in kset() argument 266 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset() argument
|