Home
last modified time | relevance | path

Searched refs:CharDevice (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs27 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/
Dnull_dev.rs45 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
Dzero_dev.rs45 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
Dmod.rs107 FileType::CharDevice => { in register_device()
157 FileType::CharDevice => { in unregister_device()
/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs4 char::CharDevice,
224 impl CharDevice for LockedUartDriver {
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmod.rs35 CharDevice, enumerator
71 FileType::CharDevice => DT_CHR, in get_file_type_num()
Dfile.rs190 FileType::Pipe | FileType::CharDevice => { in lseek()
Dsyscall.rs604 FileType::CharDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat()
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs61 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs270 let mut metadata = Metadata::new(FileType::CharDevice, 0o755); in new()