Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs18 pub trait CharDevice: Device { interface
205 cdev: Arc<dyn CharDevice>, in cdev_add() argument
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs16 block::block_device::BlockDevice, char::CharDevice, device::device_number::DeviceNumber,
51 CharDevice, enumerator
70 CharDevice(Arc<dyn CharDevice>), enumerator
108 FileType::CharDevice => DT_CHR, in get_file_type_num()
H A Dfile.rs390 FileType::Pipe | FileType::CharDevice => { in lseek()
H A Dsyscall.rs1322 FileType::CharDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat()
1493 FileType::CharDevice => tmp.stx_mode.insert(ModeType::S_IFCHR), in do_statx()
/DragonOS/kernel/src/filesystem/devfs/
H A Dnull_dev.rs48 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
H A Dzero_dev.rs48 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
H A Dmod.rs130 FileType::CharDevice => { in register_device()
202 FileType::CharDevice => { in unregister_device()
/DragonOS/kernel/src/driver/tty/
H A Dtty_device.rs12 char::CharDevice,
76 metadata: Metadata::new(FileType::CharDevice, ModeType::from_bits_truncate(0o755)), in new()
569 impl CharDevice for TtyDevice {
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dmod.rs229 .create(name, FileType::CharDevice, whiteout_mode)?; in create_whiteout()
239 self.file_type == FileType::CharDevice && (*flags & WHITEOUT_FLAG) != 0 in is_whiteout()
/DragonOS/kernel/src/driver/keyboard/
H A Dps2_keyboard.rs89 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
/DragonOS/kernel/src/filesystem/devpts/
H A Dmod.rs223 if file_type != FileType::CharDevice { in create_with_data()
/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs279 FileType::CharDevice, in ptmx_open()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs201 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs621 nod.0.lock().metadata.file_type = FileType::CharDevice; in mknod()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs1829 nod.0.lock().metadata.file_type = FileType::CharDevice; in mknod()