Home
last modified time | relevance | path

Searched refs:SeekFrom (Results 1 – 11 of 11) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dvec_cursor.rs7 use crate::{io::SeekFrom, syscall::SystemError};
131 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, SystemError> { in seek()
134 SeekFrom::SeekSet(offset) => { in seek()
137 SeekFrom::SeekCurrent(offset) => { in seek()
140 SeekFrom::SeekEnd(offset) => { in seek()
144 SeekFrom::Invalid => { in seek()
Delf.rs13 io::SeekFrom,
307 file.lseek(SeekFrom::SeekSet(offset_in_file as i64))?; in do_load_file()
414 file.lseek(SeekFrom::SeekSet(shoff as i64)) in parse_segments()
446 file.lseek(SeekFrom::SeekSet(phoff as i64)) in parse_segments()
/DragonOS-0.1.8/kernel/src/io/
Dmod.rs7 pub enum SeekFrom { enum
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dfile.rs8 io::SeekFrom, kerror, syscall::SystemError,
187 pub fn lseek(&mut self, origin: SeekFrom) -> Result<usize, SystemError> { in lseek()
198 SeekFrom::SeekSet(offset) => { in lseek()
201 SeekFrom::SeekCurrent(offset) => { in lseek()
204 SeekFrom::SeekEnd(offset) => { in lseek()
208 SeekFrom::Invalid => { in lseek()
Dsyscall.rs7 io::SeekFrom,
180 file.lseek(SeekFrom::SeekEnd(0))?; in open()
242 pub fn lseek(fd: i32, seek: SeekFrom) -> Result<usize, SystemError> { in lseek()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dfs.rs17 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
381 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry()
475 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw()
941 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
989 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1021 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in get_free_cluster()
1068 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1078 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1101 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
1128 cursor.seek(SeekFrom::SeekSet(in_block_offset as i64))?; in set_entry()
[all …]
Dbpb.rs5 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
268 cursor.seek(SeekFrom::SeekCurrent(420))?; in new()
Dentry.rs5 io::{device::LBA_SIZE, SeekFrom},
1100 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
1314 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
2377 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
2389 cursor.seek(SeekFrom::SeekCurrent(10))?; in get_raw_dir_entry()
2393 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_raw_dir_entry()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs10 io::SeekFrom,
168 param.file_mut().lseek(SeekFrom::SeekSet(0))?; in load_binary_file()
/DragonOS-0.1.8/kernel/src/syscall/
Dmod.rs17 io::SeekFrom,
479 SEEK_SET => Ok(SeekFrom::SeekSet(offset)), in handle()
480 SEEK_CUR => Ok(SeekFrom::SeekCurrent(offset)), in handle()
481 SEEK_END => Ok(SeekFrom::SeekEnd(offset)), in handle()
482 SEEK_MAX => Ok(SeekFrom::SeekEnd(0)), in handle()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs5 use crate::io::{device::BlockDevice, disk_info::Partition, SeekFrom};
413 cursor.seek(SeekFrom::SeekCurrent(446))?; in read_mbr_table()