Searched refs:File (Results 1 – 10 of 10) sorted by relevance
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | file.rs | 81 pub struct File { struct 94 impl File { argument 101 let mut f = File { in new() 268 impl Drop for File { implementation 287 pub fds: [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD], 295 let mut data: [MaybeUninit<Option<Box<File>>>; FileDescriptorVec::PROCESS_MAX_FD] = in new() 303 let data: [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD] = unsafe { in new() 304 core::mem::transmute::<_, [Option<Box<File>>; FileDescriptorVec::PROCESS_MAX_FD]>(data) in new()
|
D | core.rs | 17 vfs::{file::File, mount::MountFS, FileSystem, FileType}, 207 let inode: Arc<dyn IndexNode> = parent_inode.create(filename, FileType::File, 0o777)?; in do_open() 226 && file_type == FileType::File in do_open() 232 let mut file: File = File::new(inode, mode)?; in do_open() 251 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in do_read() 255 let file: &mut File = file.unwrap(); in do_read() 268 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in do_write() 272 let file: &mut File = file.unwrap(); in do_write() 285 let file: Option<&mut File> = current_pcb().get_file_mut_by_fd(fd); in do_lseek() 289 let file: &mut File = file.unwrap(); in do_lseek()
|
D | mod.rs | 30 File, enumerator 67 FileType::File => DT_REG, in get_file_type_num()
|
D | syscall.rs | 17 file::{File, FileMode}, 244 let file: &mut File = match current_pcb().get_file_mut_by_fd(fd) { in sys_getdents()
|
/DragonOS-0.1.5/kernel/src/process/ |
D | process.rs | 10 filesystem::vfs::file::{File, FileDescriptorVec}, 177 pub fn alloc_fd(&mut self, file: File) -> Result<i32, i32> { in alloc_fd() 211 pub fn get_file_mut_by_fd(&self, fd: i32) -> Option<&mut File> { in get_file_mut_by_fd() argument 225 pub fn get_file_ref_by_fd(&self, fd: i32) -> Option<&File> { in get_file_ref_by_fd() argument 243 let f: Option<&File> = r.fds[fd as usize].as_deref(); in drop_fd()
|
/DragonOS-0.1.5/docs/userland/libc/apis/api-list/ |
D | errno.md | 53 #define EEXIST 20 /* 文件已存在 File exists.*/ 57 #define EFBIG 22 /* 文件太大 File too large.*/ 81 #define EMFILE 33 /* 文件描述符的值过大 File descriptor value too large.*/
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 112 FATDirEntry::File(f) | FATDirEntry::VolId(f) => { in update_metadata() 170 FileType::File in new() 1354 FATDirEntry::File(f) | FATDirEntry::VolId(f) => { in read_at() 1384 FATDirEntry::File(f) | FATDirEntry::VolId(f) => { in write_at() 1425 FATDirEntry::File(_) | FATDirEntry::VolId(_) => { in create() 1429 FileType::File => { in create() 1464 FATDirEntry::File(_) | FATDirEntry::VolId(_) => { in list() 1526 FATDirEntry::File(_) | FATDirEntry::VolId(_) => { in unlink() 1554 FATDirEntry::File(_) | FATDirEntry::VolId(_) => { in rmdir()
|
D | entry.rs | 46 File(FATFile), enumerator 1201 return FATDirEntry::File(file); in to_dir_entry() 1242 return FATDirEntry::File(file); in to_dir_entry_with_long_name() 1605 FATDirEntry::File(f) | FATDirEntry::VolId(f) => { in short_name() 1623 FATDirEntry::File(f) => { in short_dir_entry() 1639 FATDirEntry::File(f) => { in first_cluster() 1657 FATDirEntry::File(f) => Some(f.loc), in get_dir_range() 1667 FATDirEntry::File(f) => { 1693 FATDirEntry::File(f) => { in name() 1709 &FATDirEntry::File(_) | &FATDirEntry::VolId(_) => true, in is_file() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 288 let binding: Arc<dyn IndexNode> = _pf.create("status", FileType::File, 0o777)?; in register_pid() 463 if inode.metadata.file_type == FileType::File { in resize()
|
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 226 if inode.metadata.file_type == FileType::File { in resize()
|