/DragonOS/kernel/src/driver/base/block/ |
H A D | disk_info.rs | 5 use super::block_device::{BlockDevice, GeneralBlockRange}; 15 disk: Option<Weak<dyn BlockDevice>>, // 当前分区所属的磁盘 26 disk: Weak<dyn BlockDevice>, in new() argument 50 pub fn disk(&self) -> Arc<dyn BlockDevice> { in disk() argument
|
H A D | manager.rs | 16 block_device::{BlockDevName, BlockDevice, GeneralBlockRange}, 41 disks: HashMap<BlockDevName, Arc<dyn BlockDevice>>, 57 pub fn register(&self, dev: Arc<dyn BlockDevice>) -> Result<(), SystemError> { in register() 75 fn check_partitions(&self, dev: &Arc<dyn BlockDevice>) -> Result<(), SystemError> { in check_partitions() 84 fn check_mbr(&self, dev: &Arc<dyn BlockDevice>) -> Result<(), SystemError> { in check_mbr() 96 dev: &Arc<dyn BlockDevice>, in register_entire_disk_as_gendisk() argument 104 dev: &Arc<dyn BlockDevice>, in register_gendisk_with_range() argument 118 dev: &Arc<dyn BlockDevice>, in register_gendisk() argument 138 pub fn unregister(&self, dev: &Arc<dyn BlockDevice>) { in unregister() argument
|
H A D | gendisk.rs | 10 use super::block_device::{BlockDevice, BlockId, GeneralBlockRange, LBA_SIZE}; 14 bdev: Weak<dyn BlockDevice>, 25 bdev: Weak<dyn BlockDevice>, in new() argument 39 pub fn block_device(&self) -> Arc<dyn BlockDevice> { in block_device() argument
|
H A D | block_device.rs | 288 pub trait BlockDevice: Device { trait 660 pub fn bdev_add(_bdev: Arc<dyn BlockDevice>, id_table: IdTable) -> Result<(), DeviceError> { in bdev_add() argument
|
/DragonOS/kernel/src/filesystem/ |
H A D | mbr.rs | 11 driver::base::block::{block_device::BlockDevice, disk_info::Partition, SeekFrom}, 86 pub fn from_disk(disk: Arc<dyn BlockDevice>) -> Result<MbrDiskPartionTable, SystemError> { in from_disk() 135 pub fn partitions(&self, disk: Weak<dyn BlockDevice>) -> Vec<Arc<Partition>> { in partitions()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | mod.rs | 16 block::block_device::BlockDevice, char::CharDevice, device::device_number::DeviceNumber, 49 BlockDevice, enumerator 72 BlockDevice(Arc<dyn BlockDevice>), enumerator 107 FileType::BlockDevice => DT_BLK, in get_file_type_num()
|
H A D | syscall.rs | 1321 FileType::BlockDevice => kstat.mode.insert(ModeType::S_IFBLK), in do_fstat() 1492 FileType::BlockDevice => tmp.stx_mode.insert(ModeType::S_IFBLK), in do_statx()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | ahcidisk.rs | 4 BlockDevName, BlockDevice, BlockId, GeneralBlockRange, 397 let partitions = table.partitions(Arc::downgrade(&result) as Weak<dyn BlockDevice>); in new() 405 let disk = self.inner().self_ref.upgrade().unwrap() as Arc<dyn BlockDevice>; in read_mbr_table() 522 impl BlockDevice for LockedAhciDisk {
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 19 block_device::{BlockDevName, BlockDevice, BlockId, GeneralBlockRange, LBA_SIZE}, 206 impl BlockDevice for VirtIOBlkDevice { 283 let device = self.self_ref.upgrade().unwrap() as Arc<dyn BlockDevice>; in partitions() 545 block_dev_manager().register(dev as Arc<dyn BlockDevice>)?; in probe()
|
/DragonOS/kernel/src/filesystem/devfs/ |
H A D | mod.rs | 157 FileType::BlockDevice => { in register_device() 215 FileType::BlockDevice => { in unregister_device()
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 618 nod.0.lock().metadata.file_type = FileType::BlockDevice; in mknod()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 1826 nod.0.lock().metadata.file_type = FileType::BlockDevice; in mknod()
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.9.md | 2086 * 初步重构 BlockDevice ,使其兼容新的 Device 结构
|