Home
last modified time | relevance | path

Searched refs:set_parent (Results 1 – 25 of 33) sorted by relevance

12

/DragonOS/kernel/src/driver/base/device/
H A Dinit.rs35 virtual_kset.set_parent(Some(Arc::downgrade(&parent))); in devices_init()
58 dev_block_kset.set_parent(Some(Arc::downgrade(&parent))); in devices_init()
73 dev_char_kset.set_parent(Some(Arc::downgrade(&parent))); in devices_init()
H A Dmod.rs518 device.set_parent(Some(Arc::downgrade(&kobject_parent))); in add_device()
586 class_dir.set_parent(Some(Arc::downgrade(&kobject_parent))); in class_dir_create_and_add()
1077 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Dbus.rs543 devices_system_kset.set_parent(Some(Arc::downgrade(&parent))); in buses_init()
856 fake_root_dev.set_parent(Some(Arc::downgrade(parent_of_root))); in subsys_register()
/DragonOS/kernel/src/driver/base/
H A Dkobject.rs38 fn set_parent(&self, parent: Option<Weak<dyn KObject>>); in set_parent() method
202 kobj.set_parent(Some(Arc::downgrade(&(kset as Arc<dyn KObject>)))); in add_kobj()
213 kobj.set_parent(None); in add_kobj()
261 kobj.set_parent(None); in remove_kobj()
H A Dkset.rs80 kset.set_parent(Some(Arc::downgrade(&parent_kobj))); in new_and_add()
166 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Dcpu.rs221 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/libs/
H A Drbtree.rs214 fn set_parent(&mut self, parent: NodePtr<K, V>) { in set_parent() method
277 node.left().set_parent(node); in deep_clone()
281 node.right().set_parent(node); in deep_clone()
873 temp.left().set_parent(node); in left_rotate()
876 temp.set_parent(node.parent()); in left_rotate()
886 node.set_parent(temp); in left_rotate()
908 temp.right().set_parent(node); in right_rotate()
911 temp.set_parent(node.parent()); in right_rotate()
921 node.set_parent(temp); in right_rotate()
1025 node.set_parent(y); in insert()
[all …]
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs73 pub fn set_parent(&self, parent: Arc<DeviceNode>) { in set_parent() method
121 fn set_parent(&self, _parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/pci/
H A Ddevice.rs116 bus_device.set_parent(parent); in new()
186 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Draw_device.rs192 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs147 platform_bus_device.set_parent(parent); in new()
270 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_driver.rs132 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Dpt_device.rs186 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs134 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Di8042_device.rs137 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Di8042_driver.rs151 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs320 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
519 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/rtc/
H A Drtc_cmos.rs166 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
H A Dsysfs.rs204 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs151 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
737 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
942 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs436 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
623 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs176 fn set_parent(&self, parent: Option<alloc::sync::Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/arch/x86_64/driver/
H A Drtc.rs193 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dmod.rs142 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs291 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent() method

12