/DragonOS/kernel/src/driver/base/char/ |
H A D | mod.rs | 9 device_number::{DeviceNumber, Major}, 73 if item.device_number().major().data() == index { in find_dynamic_major() 125 device_number: DeviceNumber, in __register_chardev_region() 129 let mut major = device_number.major(); in __register_chardev_region() 130 let baseminor = device_number.minor(); in __register_chardev_region() 152 match item.device_number().major().cmp(&major) { in __register_chardev_region() 158 if item.device_number().minor() + item.minorct() <= baseminor { in __register_chardev_region() 180 device_number: DeviceNumber, in __unregister_chardev_region() 185 .get_mut(Self::major_to_index(device_number.major())) in __unregister_chardev_region() 188 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_chardev_region() [all …]
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | block_device.rs | 5 device_number::{DeviceNumber, Major}, 529 if item.device_number().major() == Major::new(index) { in find_dynamic_major() 581 device_number: DeviceNumber, in __register_blockdev_region() 585 let mut major = device_number.major(); in __register_blockdev_region() 586 let baseminor = device_number.minor(); in __register_blockdev_region() 608 match item.device_number().major().cmp(&major) { in __register_blockdev_region() 614 if item.device_number().minor() + item.minorct() <= baseminor { in __register_blockdev_region() 636 device_number: DeviceNumber, in __unregister_blockdev_region() 641 .get_mut(Self::major_to_index(device_number.major())) in __unregister_blockdev_region() 644 if item.device_number() == device_number && item.minorct() == minorct { in __unregister_blockdev_region() [all …]
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_core.rs | 14 driver::{base::device::device_number::DeviceNumber, tty::pty::ptm_driver}, 55 let device_number = driver in new() localVariable 56 .device_number(index) in new() 76 device_number, in new() 330 device_number: DeviceNumber, field 361 pub fn device_number(&self) -> &DeviceNumber { in device_number() method 362 &self.device_number in device_number()
|
H A D | tty_driver.rs | 18 device_number::{DeviceNumber, Major}, 203 pub fn device_number(&self, index: usize) -> Option<DeviceNumber> { in device_number() method 331 IdTable::new(self.tty_line_name(idx), Some(*core.device_number())), in init_tty_device()
|
H A D | tty_device.rs | 16 device_number::{DeviceNumber, Major}, 111 let dev_num = id_table.device_number(); in new()
|
/DragonOS/kernel/src/driver/base/map/ |
H A D | mod.rs | 4 device::device_number::{DeviceNumber, Major}, 191 pub fn device_number(&self) -> DeviceNumber { in device_number() method
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | mod.rs | 35 device_number::{DeviceNumber, Major}, 50 pub mod device_number; module 344 pub fn device_number(&self) -> DeviceNumber { in device_number() method 534 if device.id_table().device_number().major() != Major::UNNAMED_MAJOR { in add_device() 937 let device_number = dev.id_table().device_number(); in show() localVariable 940 device_number.major().data(), in show() 941 device_number.minor() in show()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | fbmem.rs | 19 device_number::{DeviceNumber, Major}, 247 pub fn device_number(&self) -> DeviceNumber { in device_number() method 338 IdTable::new(Self::BASENAME.to_string(), Some(self.device_number())) in id_table()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | mod.rs | 10 device_number::{DeviceNumber, Major}, 233 ptmx_dev.inner_write().metadata_mut().raw_dev = idt.device_number(); in unix98pty_init()
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | mod.rs | 8 use crate::driver::base::device::device_number::DeviceNumber; 9 use crate::driver::base::device::device_number::Major; 424 dev_t: crate::driver::base::device::device_number::DeviceNumber, in mknod()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | null_dev.rs | 1 use crate::driver::base::device::device_number::DeviceNumber;
|
H A D | zero_dev.rs | 1 use crate::driver::base::device::device_number::DeviceNumber;
|
H A D | mod.rs | 13 driver::base::device::device_number::DeviceNumber,
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | kvm_dev.rs | 1 use crate::driver::base::device::device_number::DeviceNumber;
|
H A D | vcpu_dev.rs | 3 use crate::driver::base::device::device_number::DeviceNumber;
|
H A D | vm_dev.rs | 1 use crate::driver::base::device::device_number::DeviceNumber;
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | mod.rs | 15 device_number::{DeviceNumber, Major}, 107 let devnum = *tty_core_data.device_number(); in devfs_setup()
|
/DragonOS/kernel/src/driver/keyboard/ |
H A D | ps2_keyboard.rs | 13 base::device::device_number::{DeviceNumber, Major},
|
/DragonOS/kernel/src/filesystem/devpts/ |
H A D | mod.rs | 17 device_number::{DeviceNumber, Major},
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 17 device_number::{DeviceNumber, Major},
|
H A D | mod.rs | 19 bus::Bus, device_manager, device_number::Major, driver::Driver, Device,
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 16 block::block_device::BlockDevice, char::CharDevice, device::device_number::DeviceNumber,
|
H A D | mount.rs | 16 driver::base::device::device_number::DeviceNumber,
|
/DragonOS/kernel/src/filesystem/kernfs/ |
H A D | mod.rs | 13 driver::base::device::device_number::DeviceNumber,
|
/DragonOS/kernel/src/driver/input/ps2_mouse/ |
H A D | ps_mouse_device.rs | 18 bus::Bus, device_manager, device_number::DeviceNumber, driver::Driver, Device,
|