Searched refs:SeekFrom (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.5/kernel/src/libs/ |
D | vec_cursor.rs | 9 io::SeekFrom, 134 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, i32> { in seek() 137 SeekFrom::SeekSet(offset) => { in seek() 140 SeekFrom::SeekCurrent(offset) => { in seek() 143 SeekFrom::SeekEnd(offset) => { in seek() 147 SeekFrom::Invalid => { in seek()
|
/DragonOS-0.1.5/kernel/src/io/ |
D | mod.rs | 7 pub enum SeekFrom { enum
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | file.rs | 11 io::SeekFrom, 169 pub fn lseek(&mut self, origin: SeekFrom) -> Result<usize, i32> { in lseek() 175 SeekFrom::SeekSet(offset) => { in lseek() 178 SeekFrom::SeekCurrent(offset) => { in lseek() 181 SeekFrom::SeekEnd(offset) => { in lseek() 185 SeekFrom::Invalid => { in lseek()
|
D | syscall.rs | 11 io::SeekFrom, 130 let w: SeekFrom = match whence { in sys_lseek() 131 SEEK_SET => SeekFrom::SeekSet(offset), in sys_lseek() 132 SEEK_CUR => SeekFrom::SeekCurrent(offset), in sys_lseek() 133 SEEK_END => SeekFrom::SeekEnd(offset), in sys_lseek() 134 SEEK_MAX => SeekFrom::SeekEnd(0), in sys_lseek()
|
D | core.rs | 20 io::SeekFrom, 236 file.lseek(SeekFrom::SeekEnd(0))?; in do_open() 284 pub fn do_lseek(fd: i32, seek: SeekFrom) -> Result<usize, i32> { in do_lseek()
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 19 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom}, 371 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry() 465 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw() 931 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster() 979 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster() 1011 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster() 1058 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry() 1068 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry() 1091 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry() 1118 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry() [all …]
|
D | bpb.rs | 6 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom}, 229 cursor.seek(SeekFrom::SeekCurrent(420))?; in new()
|
D | entry.rs | 15 io::{device::LBA_SIZE, SeekFrom}, 1080 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush() 1290 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush() 2349 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry() 2361 cursor.seek(SeekFrom::SeekCurrent(10))?; in get_raw_dir_entry() 2365 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahcidisk.rs | 5 use crate::io::{device::BlockDevice, disk_info::Partition, SeekFrom}; 365 cursor.seek(SeekFrom::SeekCurrent(446))?; in read_mbr_table()
|