Home
last modified time | relevance | path

Searched refs:gendisk (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/src/driver/base/block/
H A Dmanager.rs9 driver::base::block::gendisk::GenDisk,
17 gendisk::GenDiskMap,
108 let gendisk = GenDisk::new( in register_gendisk_with_range() localVariable
113 self.register_gendisk(dev, gendisk) in register_gendisk_with_range()
119 gendisk: Arc<GenDisk>, in register_gendisk()
122 let idx = gendisk.idx(); in register_gendisk()
125 if meta_inner.gendisks.intersects(gendisk.range()) { in register_gendisk()
129 meta_inner.gendisks.insert(idx, gendisk.clone()); in register_gendisk()
130 dev.callback_gendisk_registered(&gendisk).inspect_err(|_| { in register_gendisk()
H A Dmod.rs3 pub mod gendisk; module
H A Dblock_device.rs21 use super::{disk_info::Partition, gendisk::GenDisk, manager::BlockDevMeta};
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs15 use crate::driver::base::block::gendisk::GenDisk;
79 pub gendisk: Arc<GenDisk>, field
312 pub fn new(gendisk: Arc<GenDisk>) -> Result<Arc<FATFileSystem>, SystemError> { in new()
313 let bpb = BiosParameterBlock::new(&gendisk)?; in new()
320 &gendisk, in new()
382 gendisk, in new()
436 self.gendisk.read_at(&mut v, fat_ent_lba as usize)?; in get_fat_entry()
527 self.gendisk.read_at(&mut v, fat_ent_lba)?; in get_fat_entry_raw()
907 self.fs_info.0.lock().flush(&self.gendisk)?; in umount()
913 self.gendisk.sync()?; in umount()
[all …]
H A Dbpb.rs7 driver::base::block::{block_device::LBA_SIZE, gendisk::GenDisk, SeekFrom},
222 pub fn new(gendisk: &Arc<GenDisk>) -> Result<BiosParameterBlock, SystemError> { in new()
225 gendisk.read_at(&mut v, 0)?; in new()
H A Dentry.rs134 .gendisk in read()
200 .gendisk in write()
325 fs.gendisk.write_at_bytes(&zeroes, range_start as usize)?; in zero_range()
1141 fs.gendisk.read_at(&mut v, lba)?; in flush()
1168 fs.gendisk.write_at(cursor.as_slice(), lba)?; in flush()
1170 fs.gendisk.sync()?; in flush()
1354 fs.gendisk.read_at(&mut v, lba)?; in flush()
1373 fs.gendisk.write_at(cursor.as_slice(), lba)?; in flush()
1375 fs.gendisk.sync()?; in flush()
2404 fs.gendisk.read_at(&mut v, lba)?; in get_raw_dir_entry()
/DragonOS/kernel/src/filesystem/vfs/
H A Dcore.rs8 driver::base::block::{gendisk::GenDisk, manager::block_dev_manager},
135 let gendisk = if let Some(rootfs_dev_path) = ROOTFS_PATH_PARAM.value_str() { in mount_root_fs() localVariable
145 let fatfs: Result<Arc<FATFileSystem>, SystemError> = FATFileSystem::new(gendisk); in mount_root_fs()