/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 94 file_type: FileType::Dir, in new() 133 if inode.metadata.file_type == FileType::Dir { in read_at() 166 if inode.metadata.file_type == FileType::Dir { in write_at() 187 if inode.metadata.file_type == FileType::Dir { in poll() 226 if inode.metadata.file_type == FileType::File { in resize() 237 file_type: FileType, in create_with_data() 244 if inode.metadata.file_type != FileType::Dir { in create_with_data() 267 file_type: file_type, in create_with_data() 294 if inode.metadata.file_type != FileType::Dir { in link() 299 if other_locked.metadata.file_type == FileType::Dir { in link() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 252 file_type: FileType::Dir, in new() 327 if let FileType::Dir = inode.metadata.file_type { in open() 348 if let FileType::Dir = guard.metadata.file_type { in close() 377 if inode.metadata.file_type == FileType::Dir { in read_at() 425 if inode.metadata.file_type == FileType::Dir { in poll() 463 if inode.metadata.file_type == FileType::File { in resize() 474 file_type: FileType, in create_with_data() 481 if inode.metadata.file_type != FileType::Dir { in create_with_data() 505 file_type: file_type, in create_with_data() 536 if inode.metadata.file_type != FileType::Dir { in link() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | file.rs | 88 file_type: FileType, field 100 let file_type: FileType = inode.metadata()?.file_type; in new() localVariable 105 file_type, in new() 170 if self.inode.metadata().unwrap().file_type == FileType::Pipe { in lseek() 250 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir()
|
D | core.rs | 217 let file_type: FileType = inode.metadata()?.file_type; in do_open() localVariable 219 if mode.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in do_open() 226 && file_type == FileType::File in do_open() 343 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 348 if target_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 375 if inode.unwrap().metadata()?.file_type == FileType::Dir { in do_unlink_at() 383 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
|
D | mod.rs | 185 file_type: FileType, in create() 189 return self.create_with_data(name, file_type, mode, 0); in create() 365 if self.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 382 if result.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 410 if inode.metadata()?.file_type == FileType::SymLink && max_follow_times > 0 { in lookup_follow_symlink() 464 pub file_type: FileType, field
|
D | mount.rs | 140 file_type: FileType, in create_with_data() 146 .create_with_data(name, file_type, mode, data); in create_with_data() 209 file_type: FileType, in create() 213 inner_inode: self.inner_inode.create(name, file_type, mode)?, in create() 330 if metadata.file_type != FileType::Dir { in mount()
|
D | syscall.rs | 211 if let FileType::Dir = i.file_type { in sys_chdir()
|
/DragonOS-0.1.5/kernel/src/filesystem/devfs/ |
D | mod.rs | 99 match device.metadata().unwrap().file_type { in register_device() 140 match device.metadata().unwrap().file_type { in unregister_device() 220 file_type: dev_type_, // 文件夹 in new_with_parent() 277 if guard.metadata.file_type != FileType::Dir { in do_create_with_data() 300 file_type: _file_type, in do_create_with_data() 336 file_type: FileType, in create_with_data() 343 return self.do_create_with_data(guard, name, file_type, mode, data); in create_with_data() 349 if inode.metadata.file_type != FileType::Dir { in find() 373 if inode.metadata.file_type != FileType::Dir { in get_entry_name() 409 if info.file_type != FileType::Dir { in list() [all …]
|
D | null_dev.rs | 48 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
D | zero_dev.rs | 48 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 53 file_type: FileType::BlockDevice, // 文件夹,block设备,char设备 in new()
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 167 let file_type = if let FATDirEntry::Dir(_) = inode_type { in new() localVariable 192 file_type: file_type, in new() 304 file_type: FileType::Dir, in new() 1404 if inode.metadata.file_type == FileType::Dir { in poll() 1416 file_type: FileType, in create() 1428 FATDirEntry::Dir(d) => match file_type { in create() 1583 if guard.metadata.file_type != FileType::Dir { in get_entry_name()
|
/DragonOS-0.1.5/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 47 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|