Home
last modified time | relevance | path

Searched refs:IdTable (Results 1 – 23 of 23) sorted by relevance

/DragonOS-0.1.9/docs/kernel/filesystem/
Dsysfs.md38 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-0.1.9/kernel/src/driver/base/device/
Dmod.rs137 fn id_table(&self) -> IdTable; in id_table() argument
208 id_table: IdTable,
214 pub fn new(id_table: IdTable, state: DeviceState) -> Self { in new() argument
218 pub fn id_table(&self) -> &IdTable { in id_table() argument
249 pub struct IdTable { struct
255 impl IdTable { argument
260 pub fn new(basename: String, id: Option<DeviceNumber>) -> IdTable { in new() argument
261 return IdTable { basename, id }; in new()
281 impl Default for IdTable { implementation
283 IdTable::new("unknown".to_string(), None) in default()
[all …]
Ddriver.rs3 Device, DeviceMatchName, DeviceMatcher, IdTable,
59 fn id_table(&self) -> Option<IdTable>; in id_table() argument
/DragonOS-0.1.9/kernel/src/driver/base/platform/
Dmod.rs6 device_unregister, sys_devices_kset, DevicePrivateData, IdTable,
80 IdTable::new("platform".to_string(), None), in platform_bus_init()
Dplatform_device.rs14 Device, DevicePrivateData, DeviceType, IdTable,
289 fn id_table(&self) -> IdTable { in id_table() argument
290 IdTable::new("platform".to_string(), None) in id_table()
/DragonOS-0.1.9/kernel/src/driver/input/serio/i8042/
Di8042_device.rs9 device::{bus::Bus, driver::Driver, Device, DeviceState, DeviceType, IdTable},
69 fn id_table(&self) -> IdTable { in id_table() argument
70 IdTable::new(self.name(), None) in id_table()
Di8042_ports.rs11 device::{bus::Bus, driver::Driver, Device, DeviceType, IdTable},
67 fn id_table(&self) -> IdTable { in id_table() argument
68 IdTable::new(self.name(), None) in id_table()
Di8042_driver.rs10 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-0.1.9/kernel/src/driver/base/char/
Dmod.rs10 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-0.1.9/kernel/src/driver/base/
Dcpu.rs21 Device, DeviceType, IdTable,
152 fn id_table(&self) -> IdTable { in id_table() argument
153 IdTable::new("cpu".to_string(), None) in id_table()
/DragonOS-0.1.9/kernel/src/driver/tty/
Dtty_device.rs18 Device, DeviceKObjType, DeviceType, IdTable,
79 id_table: IdTable,
87 pub fn new(name: &'static str, id_table: IdTable) -> Arc<TtyDevice> { in new()
421 fn id_table(&self) -> crate::driver::base::device::IdTable { in id_table() argument
487 IdTable::new( in tty_init()
495 IdTable::new( in tty_init()
Dtty_driver.rs332 fn id_table(&self) -> Option<crate::driver::base::device::IdTable> { in id_table() argument
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/
Dps_mouse_driver.rs13 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable},
126 fn id_table(&self) -> Option<IdTable> { in id_table() argument
127 Some(IdTable::new("psmouse".to_string(), None)) in id_table()
Dps_mouse_device.rs18 DeviceType, IdTable,
442 fn id_table(&self) -> IdTable { in id_table() argument
443 IdTable::new(self.name().to_string(), None) in id_table()
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/
Dmod.rs18 DeviceKObjType, DeviceState, DeviceType, IdTable,
228 fn id_table(&self) -> IdTable { in id_table() argument
229 return IdTable::new(self.name.to_string(), None); in id_table()
443 fn id_table(&self) -> Option<IdTable> { in id_table() argument
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/
Dmod.rs12 device::{bus::Bus, device_manager, driver::Driver, Device, DeviceType, IdTable},
188 fn id_table(&self) -> IdTable { in id_table() argument
189 IdTable::new(Self::NAME.to_string(), None) in id_table()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/
Dfbmem.rs20 sys_dev_char_kset, Device, DeviceType, IdTable,
335 fn id_table(&self) -> IdTable { in id_table() argument
336 IdTable::new(Self::BASENAME.to_string(), Some(self.device_number())) in id_table()
/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/
Dmod.rs10 device_register, IdTable,
269 IdTable::new( in vty_init()
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/
De1000e_driver.rs6 device::{bus::Bus, driver::Driver, Device, IdTable},
208 fn id_table(&self) -> Option<IdTable> { in id_table() argument
/DragonOS-0.1.9/kernel/src/driver/base/block/
Dblock_device.rs6 Device, DeviceError, IdTable, BLOCKDEVS,
491 pub fn bdev_add(_bdev: Arc<dyn BlockDevice>, id_table: IdTable) -> Result<(), DeviceError> { in bdev_add()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/
Dvesafb.rs21 bus::Bus, device_manager, driver::Driver, Device, DeviceState, DeviceType, IdTable,
180 fn id_table(&self) -> IdTable { in id_table() argument
181 IdTable::new(self.name(), None) in id_table()
675 fn id_table(&self) -> Option<IdTable> { in id_table() argument
676 Some(IdTable::new(VesaFb::NAME.to_string(), None)) in id_table()
/DragonOS-0.1.9/kernel/src/driver/net/
Dvirtio_net.rs18 device::{bus::Bus, driver::Driver, Device, DeviceId, IdTable},
277 fn id_table(&self) -> Option<IdTable> { in id_table() argument
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/
Dahcidisk.rs9 use crate::driver::base::device::{Device, DeviceType, IdTable};
498 fn id_table(&self) -> IdTable { in id_table() argument