Searched refs:BlockDevice (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.8/kernel/src/io/ |
D | disk_info.rs | 2 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
|
D | device.rs | 51 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/ |
D | ahci_inode.rs | 7 use crate::io::device::BlockDevice; 51 file_type: FileType::BlockDevice, // 文件夹,block设备,char设备 in new()
|
D | mod.rs | 6 use crate::io::device::BlockDevice;
|
D | ahcidisk.rs | 5 use crate::io::{device::BlockDevice, disk_info::Partition, SeekFrom}; 438 impl BlockDevice for LockedAhciDisk {
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 33 BlockDevice, enumerator 70 FileType::BlockDevice => DT_BLK, in get_file_type_num()
|
D | syscall.rs | 603 FileType::BlockDevice => kstat.mode.insert(ModeType::S_IFBLK), in do_fstat()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 126 FileType::BlockDevice => { in register_device() 170 FileType::BlockDevice => { in unregister_device()
|