Home
last modified time | relevance | path

Searched refs:KSet (Results 1 – 25 of 40) sorted by relevance

12

/DragonOS/kernel/src/driver/base/
H A Dhypervisor.rs5 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 Dfirmware.rs5 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 Dkset.rs19 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 Dsubsys.rs26 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 Dclass.rs8 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 Dkobject.rs24 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 Dinit.rs10 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 Dbus.rs9 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 Dmod.rs44 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 Dksysfs.rs2 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 Dsysfs.rs4 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 Dmod.rs19 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 Di8042_driver.rs12 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 Di8042_ports.rs13 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 Di8042_device.rs13 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 Dsysfs.rs9 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 Ddevice_node.rs4 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 Dpt_driver.rs16 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 Dpt_device.rs15 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 Ddevice.rs13 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 Draw_device.rs13 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 Dps_mouse_driver.rs16 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 Dmod.rs23 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 Drtc_cmos.rs23 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 Dplatform_device.rs17 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

12