Home
last modified time | relevance | path

Searched refs:BlockDevice (Results 1 – 8 of 8) sorted by relevance

/DragonOS-0.1.8/kernel/src/io/
Ddisk_info.rs2 use super::device::BlockDevice;
18 disk: Weak<dyn BlockDevice>, // 当前分区所属的磁盘
32 disk: Weak<dyn BlockDevice>, in new() argument
46 pub fn disk(&self) -> Arc<dyn BlockDevice> { in disk() argument
Ddevice.rs51 pub trait BlockDevice: Any + Send + Sync + Debug { interface
107 impl<T: BlockDevice> Device for T {
127 BlockDevice::read_at(self, range.lba_start, count, buf_slice)?; in read_at()
136 BlockDevice::read_at(self, range.lba_start, 1, &mut temp[..])?; in read_at()
162 BlockDevice::write_at(self, range.lba_start, count, buf_slice)?; in write_at()
171 BlockDevice::read_at(self, range.lba_start, 1, &mut temp[..])?; in write_at()
174 BlockDevice::write_at(self, range.lba_start, 1, &temp[..])?; in write_at()
182 BlockDevice::sync(self) in sync()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs7 use crate::io::device::BlockDevice;
51 file_type: FileType::BlockDevice, // 文件夹,block设备,char设备 in new()
Dmod.rs6 use crate::io::device::BlockDevice;
Dahcidisk.rs5 use crate::io::{device::BlockDevice, disk_info::Partition, SeekFrom};
438 impl BlockDevice for LockedAhciDisk {
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmod.rs33 BlockDevice, enumerator
70 FileType::BlockDevice => DT_BLK, in get_file_type_num()
Dsyscall.rs603 FileType::BlockDevice => kstat.mode.insert(ModeType::S_IFBLK), in do_fstat()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs126 FileType::BlockDevice => { in register_device()
170 FileType::BlockDevice => { in unregister_device()