/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 92 file_type: FileType::Dir, in new() 131 if inode.metadata.file_type == FileType::Dir { in read_at() 164 if inode.metadata.file_type == FileType::Dir { in write_at() 185 if inode.metadata.file_type == FileType::Dir { in poll() 222 if inode.metadata.file_type == FileType::File { in resize() 233 file_type: FileType, in create_with_data() 240 if inode.metadata.file_type != FileType::Dir { in create_with_data() 263 file_type: file_type, in create_with_data() 290 if inode.metadata.file_type != FileType::Dir { in link() 295 if other_locked.metadata.file_type == FileType::Dir { in link() [all …]
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | file.rs | 95 file_type: FileType, field 107 let file_type: FileType = inode.metadata()?.file_type; in new() localVariable 112 file_type, in new() 188 let file_type = self.inode.metadata()?.file_type; in lseek() localVariable 189 match file_type { in lseek() 274 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir() 300 file_type: self.file_type.clone(), in try_clone() 314 pub fn file_type(&self) -> FileType { in file_type() method 315 return self.file_type; in file_type()
|
D | mod.rs | 187 file_type: FileType, in create() 191 return self.create_with_data(name, file_type, mode, 0); in create() 378 if self.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 395 if result.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 423 if inode.metadata()?.file_type == FileType::SymLink && max_follow_times > 0 { in lookup_follow_symlink() 477 pub file_type: FileType, field 506 file_type: FileType::File, in default() 554 pub fn new(file_type: FileType, mode: u32) -> Self { in new() 564 file_type, in new()
|
D | mount.rs | 137 file_type: FileType, in create_with_data() 143 .create_with_data(name, file_type, mode, data); in create_with_data() 204 file_type: FileType, in create() 208 inner_inode: self.inner_inode.create(name, file_type, mode)?, in create() 325 if metadata.file_type != FileType::Dir { in mount()
|
D | core.rs | 252 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 257 if target_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 284 if inode.unwrap().metadata()?.file_type == FileType::Dir { in do_unlink_at() 292 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
|
D | syscall.rs | 161 let file_type: FileType = inode.metadata()?.file_type; in open() localVariable 163 if mode.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in open() 170 && file_type == FileType::File in open() 291 if let FileType::Dir = i.file_type { in chdir() 600 match file.file_type() { in do_fstat()
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 254 file_type: FileType::Dir, in new() 329 if let FileType::Dir = inode.metadata.file_type { in open() 350 if let FileType::Dir = guard.metadata.file_type { in close() 379 if inode.metadata.file_type == FileType::Dir { in read_at() 427 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.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 105 match metadata.file_type { in register_device() 155 match device.metadata().unwrap().file_type { in unregister_device() 235 file_type: dev_type_, // 文件夹 in new_with_parent() 296 if guard.metadata.file_type != FileType::Dir { in do_create_with_data() 319 file_type: _file_type, in do_create_with_data() 358 file_type: FileType, in create_with_data() 365 return self.do_create_with_data(guard, name, file_type, mode, data); in create_with_data() 371 if inode.metadata.file_type != FileType::Dir { in find() 395 if inode.metadata.file_type != FileType::Dir { in get_entry_name() 431 if info.file_type != FileType::Dir { in list() [all …]
|
D | null_dev.rs | 45 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
D | zero_dev.rs | 45 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 193 if inode.metadata.file_type == FileType::Dir { in poll() 210 if inode.metadata.file_type != FileType::Dir { in get_entry_name() 243 if inode.metadata.file_type != FileType::Dir { in find() 271 if info.file_type != FileType::Dir { in list() 293 if guard.metadata.file_type != FileType::Dir { in do_create_with_data() 316 file_type: _file_type, in do_create_with_data() 438 file_type: dev_type_, // 文件夹 in new_with_parent()
|
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 51 file_type: FileType::BlockDevice, // 文件夹,block设备,char设备 in new()
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | fs.rs | 166 let file_type = if let FATDirEntry::Dir(_) = inode_type { in new() localVariable 191 file_type: file_type, in new() 310 file_type: FileType::Dir, in new() 1414 if inode.metadata.file_type == FileType::Dir { in poll() 1424 file_type: FileType, in create() 1436 FATDirEntry::Dir(d) => match file_type { in create() 1629 if guard.metadata.file_type != FileType::Dir { in get_entry_name()
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 61 file_type: FileType::CharDevice, // 文件夹,block设备,char设备 in new()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 57 file_type: FileType::Pipe, in new()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.rs | 307 if f.file_type() != FileType::Socket { in get_socket()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 1206 file_type: FileType::Socket, in metadata()
|