Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/base/block/
H A Ddisk_info.rs5 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 Dmanager.rs16 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
137 pub fn unregister(&self, dev: &Arc<dyn BlockDevice>) { in unregister() argument
H A Dgendisk.rs10 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 Dblock_device.rs288 pub trait BlockDevice: Device { interface
660 pub fn bdev_add(_bdev: Arc<dyn BlockDevice>, id_table: IdTable) -> Result<(), DeviceError> { in bdev_add() argument
/DragonOS/kernel/src/filesystem/
H A Dmbr.rs11 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/driver/disk/ahci/
H A Dahci_inode.rs1 use crate::driver::base::block::block_device::BlockDevice;
53 file_type: FileType::BlockDevice, // 文件夹,block设备,char设备 in new()
H A Dahcidisk.rs4 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/filesystem/vfs/
H A Dmod.rs16 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 Dsyscall.rs1297 FileType::BlockDevice => kstat.mode.insert(ModeType::S_IFBLK), in do_fstat()
1468 FileType::BlockDevice => tmp.stx_mode.insert(ModeType::S_IFBLK), in do_statx()
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs19 block_device::{BlockDevName, BlockDevice, BlockId, GeneralBlockRange, LBA_SIZE},
199 impl BlockDevice for VirtIOBlkDevice {
276 let device = self.self_ref.upgrade().unwrap() as Arc<dyn BlockDevice>; in partitions()
538 block_dev_manager().register(dev as Arc<dyn BlockDevice>)?; in probe()
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs157 FileType::BlockDevice => { in register_device()
215 FileType::BlockDevice => { in unregister_device()
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs607 nod.0.lock().metadata.file_type = FileType::BlockDevice; in mknod()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs1824 nod.0.lock().metadata.file_type = FileType::BlockDevice; in mknod()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md2086 * 初步重构 BlockDevice ,使其兼容新的 Device 结构