Searched refs:CharDevice (Results 1 – 10 of 10) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 27 pub trait CharDevice: KObject { interface 270 pub fn cdev_add(cdev: Arc<dyn CharDevice>, dev_t: DeviceNumber, range: usize) { in cdev_add() argument
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 45 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
D | zero_dev.rs | 45 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
D | mod.rs | 107 FileType::CharDevice => { in register_device() 157 FileType::CharDevice => { in unregister_device()
|
/DragonOS-0.1.8/kernel/src/driver/uart/ |
D | uart.rs | 4 char::CharDevice, 224 impl CharDevice for LockedUartDriver {
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 35 CharDevice, enumerator 71 FileType::CharDevice => DT_CHR, in get_file_type_num()
|
D | file.rs | 190 FileType::Pipe | FileType::CharDevice => { in lseek()
|
D | syscall.rs | 604 FileType::CharDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat()
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 61 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 270 let mut metadata = Metadata::new(FileType::CharDevice, 0o755); in new()
|