/DragonOS/docs/kernel/filesystem/ |
H A D | sysfs.md | 38 devices: BTreeMap<IdTable, Arc<dyn Device>>, // 所有设备 56 drivers: BTreeMap<IdTable, Arc<dyn Driver>>, // 所有驱动 75 buses: BTreeMap<IdTable, Arc<dyn Bus>>, // 总线设备表 76 bus_drvs: BTreeMap<IdTable, Arc<dyn BusDriver>>, // 总线驱动表
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | mod.rs | 6 device_unregister, sys_devices_kset, DevicePrivateData, IdTable, 80 IdTable::new("platform".to_string(), None), in platform_bus_init()
|
H A D | platform_device.rs | 14 Device, DeviceCommonData, DevicePrivateData, DeviceType, IdTable, 284 fn id_table(&self) -> IdTable { in id_table() argument 285 IdTable::new("platform".to_string(), None) in id_table()
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 13 Device, IdTable, 83 fn id_table(&self) -> Option<IdTable> { in id_table() argument 84 Some(IdTable::new("PciTestDriver".to_string(), None)) in id_table()
|
H A D | pt_device.rs | 13 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable}, 128 fn id_table(&self) -> IdTable { in id_table() argument 129 IdTable::new("testPci".to_string(), None) in id_table()
|
/DragonOS/kernel/src/driver/input/serio/i8042/ |
H A D | i8042_ports.rs | 11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable}, 61 fn id_table(&self) -> IdTable { in id_table() argument 62 IdTable::new(self.name(), None) in id_table()
|
H A D | i8042_device.rs | 10 bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceState, DeviceType, IdTable, 65 fn id_table(&self) -> IdTable { in id_table() argument 66 IdTable::new(self.name(), None) in id_table()
|
H A D | i8042_driver.rs | 10 device::{bus::Bus, driver::Driver, Device, IdTable}, 102 fn id_table(&self) -> Option<IdTable> { in id_table() argument 103 Some(IdTable::new(I8042PlatformDevice::NAME.to_string(), None)) in id_table()
|
/DragonOS/kernel/src/driver/base/char/ |
H A D | mod.rs | 10 Device, IdTable, CHARDEVS, DEVMAP, 206 id_table: IdTable, in cdev_add() argument 228 pub fn cdev_del(id_table: IdTable, range: usize) { in cdev_del() argument
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 146 fn id_table(&self) -> IdTable; in id_table() argument 275 id_table: IdTable, 281 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new() argument 285 pub fn id_table(&self) -> &IdTable { in id_table() argument 317 pub struct IdTable { struct 323 impl IdTable { impl 328 pub fn new(basename: String, id: Option<DeviceNumber>) -> IdTable { in new() argument 329 return IdTable { basename, id }; in new() 349 impl Default for IdTable { implementation 351 IdTable::new("unknown".to_string(), None) in default() [all …]
|
H A D | driver.rs | 3 Device, DeviceMatchName, DeviceMatcher, IdTable, 64 fn id_table(&self) -> Option<IdTable>; in id_table() argument
|
/DragonOS/kernel/src/driver/pci/ |
H A D | device.rs | 10 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable, 196 fn id_table(&self) -> IdTable { in id_table() argument 197 IdTable::new("pci".to_string(), None) in id_table()
|
H A D | raw_device.rs | 11 device::{bus::Bus, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable}, 136 fn id_table(&self) -> IdTable { in id_table() argument 137 IdTable::new("testPci".to_string(), None) in id_table()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | rtc_cmos.rs | 20 Device, IdTable, 124 fn id_table(&self) -> Option<IdTable> { in id_table() argument 125 Some(IdTable::new(Self::NAME.to_string(), None)) in id_table()
|
H A D | sysfs.rs | 12 bus::Bus, device_manager, driver::Driver, Device, DeviceCommonData, DeviceType, IdTable, 125 fn id_table(&self) -> IdTable { in id_table() argument 126 IdTable::new(self.name.clone(), None) in id_table()
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 19 Device, DeviceCommonData, DeviceType, IdTable, 151 fn id_table(&self) -> IdTable { in id_table() argument 152 IdTable::new("cpu".to_string(), None) in id_table()
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_driver.rs | 14 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable}, 127 fn id_table(&self) -> Option<IdTable> { in id_table() argument 128 Some(IdTable::new("psmouse".to_string(), None)) in id_table()
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | rtc.rs | 18 DeviceType, IdTable, 117 fn id_table(&self) -> IdTable { in id_table() argument 118 IdTable::new(Self::NAME.to_string(), None) in id_table()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 19 Device, DeviceKObjType, DeviceType, IdTable, 101 id_table: IdTable, 110 pub fn new(name: String, id_table: IdTable, tty_type: TtyType) -> Arc<TtyDevice> { in new() argument 508 fn id_table(&self) -> crate::driver::base::device::IdTable { in id_table() argument 601 IdTable::new( in tty_init()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 27 Device, DeviceCommonData, DeviceId, DeviceType, IdTable, 355 fn id_table(&self) -> IdTable { in id_table() argument 356 IdTable::new(VIRTIO_BLK_BASENAME.to_string(), None) in id_table() 559 fn id_table(&self) -> Option<IdTable> { in id_table() argument 560 Some(IdTable::new(VIRTIO_BLK_BASENAME.to_string(), None)) in id_table()
|
/DragonOS/kernel/src/driver/net/ |
H A D | virtio_net.rs | 28 Device, DeviceCommonData, DeviceId, DeviceType, IdTable, 197 fn id_table(&self) -> IdTable { in id_table() argument 198 IdTable::new(VIRTIO_NET_BASENAME.to_string(), None) in id_table() 449 fn id_table(&self) -> IdTable { in id_table() argument 450 IdTable::new(VIRTIO_NET_BASENAME.to_string(), None) in id_table() 878 fn id_table(&self) -> Option<IdTable> { in id_table() argument 879 Some(IdTable::new(VIRTIO_NET_BASENAME.to_string(), None)) in id_table()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 20 DeviceCommonData, DeviceKObjType, DeviceState, DeviceType, IdTable, 266 fn id_table(&self) -> IdTable { in id_table() argument 267 return IdTable::new(self.name.to_string(), None); in id_table() 475 fn id_table(&self) -> Option<IdTable> { in id_table() argument
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | mod.rs | 15 IdTable, 188 fn id_table(&self) -> IdTable { in id_table() argument 189 IdTable::new(Self::NAME.to_string(), None) in id_table()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 21 sys_dev_char_kset, Device, DeviceCommonData, DeviceType, IdTable, 337 fn id_table(&self) -> IdTable { in id_table() argument 338 IdTable::new(Self::BASENAME.to_string(), Some(self.device_number())) in id_table()
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 18 IdTable, 237 IdTable::new(name.to_string(), None), in create_with_data()
|