/DragonOS-0.1.9/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 26 metadata: Metadata, field 38 metadata: Metadata { in new() 82 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 83 return Ok(self.0.lock().metadata.clone()); in metadata() 94 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 96 inode.metadata.atime = metadata.atime; in set_metadata() 97 inode.metadata.mtime = metadata.mtime; in set_metadata() 98 inode.metadata.ctime = metadata.ctime; in set_metadata() 99 inode.metadata.mode = metadata.mode; in set_metadata() 100 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
D | zero_dev.rs | 26 metadata: Metadata, field 38 metadata: Metadata { in new() 82 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 83 return Ok(self.0.lock().metadata.clone()); in metadata() 94 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 96 inode.metadata.atime = metadata.atime; in set_metadata() 97 inode.metadata.mtime = metadata.mtime; in set_metadata() 98 inode.metadata.ctime = metadata.ctime; in set_metadata() 99 inode.metadata.mode = metadata.mode; in set_metadata() 100 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
D | mod.rs | 109 let metadata = device.metadata()?; in register_device() localVariable 110 match metadata.file_type { in register_device() 178 match device.metadata().unwrap().file_type { in unregister_device() 231 metadata: Metadata, field 249 metadata: Metadata { in new_with_parent() 325 if guard.metadata.file_type != FileType::Dir { in do_create_with_data() 339 metadata: Metadata { in do_create_with_data() 400 if inode.metadata.file_type != FileType::Dir { in find() 424 if inode.metadata.file_type != FileType::Dir { in get_entry_name() 446 .metadata() in get_entry_name() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 28 metadata: Metadata, field 43 metadata: Metadata { in new() 87 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 88 return Ok(self.0.lock().metadata.clone()); in metadata() 99 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 101 inode.metadata.atime = metadata.atime; in set_metadata() 102 inode.metadata.mtime = metadata.mtime; in set_metadata() 103 inode.metadata.ctime = metadata.ctime; in set_metadata() 104 inode.metadata.mode = metadata.mode; in set_metadata() 105 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | kvm_dev.rs | 44 metadata: Metadata, field 55 metadata: Metadata { in new() 100 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 101 return Ok(self.0.lock().metadata.clone()); in metadata() 112 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 114 inode.metadata.atime = metadata.atime; in set_metadata() 115 inode.metadata.mtime = metadata.mtime; in set_metadata() 116 inode.metadata.ctime = metadata.ctime; in set_metadata() 117 inode.metadata.mode = metadata.mode; in set_metadata() 118 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
D | vcpu_dev.rs | 54 metadata: Metadata, field 66 metadata: Metadata { in new() 108 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 109 return Ok(self.0.lock().metadata.clone()); in metadata() 120 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 122 inode.metadata.atime = metadata.atime; in set_metadata() 123 inode.metadata.mtime = metadata.mtime; in set_metadata() 124 inode.metadata.ctime = metadata.ctime; in set_metadata() 125 inode.metadata.mode = metadata.mode; in set_metadata() 126 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
D | vm_dev.rs | 52 metadata: Metadata, field 64 metadata: Metadata { in new() 106 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 107 return Ok(self.0.lock().metadata.clone()); in metadata() 118 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 120 inode.metadata.atime = metadata.atime; in set_metadata() 121 inode.metadata.mtime = metadata.mtime; in set_metadata() 122 inode.metadata.ctime = metadata.ctime; in set_metadata() 123 inode.metadata.mode = metadata.mode; in set_metadata() 124 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/ramfs/ |
D | mod.rs | 55 metadata: Metadata, field 89 metadata: Metadata { in new() 128 if inode.metadata.file_type == FileType::Dir { in truncate() 165 if inode.metadata.file_type == FileType::Dir { in read_at() 198 if inode.metadata.file_type == FileType::Dir { in write_at() 222 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 224 let mut metadata = inode.metadata.clone(); in metadata() localVariable 225 metadata.size = inode.data.len() as i64; in metadata() 227 return Ok(metadata); in metadata() 230 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 67 metadata: Metadata, field 76 metadata: Metadata { in new() 141 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 142 return Ok(self.0.read().metadata.clone()); in metadata() 145 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 147 inode.metadata.atime = metadata.atime; in set_metadata() 148 inode.metadata.mtime = metadata.mtime; in set_metadata() 149 inode.metadata.ctime = metadata.ctime; in set_metadata() 150 inode.metadata.mode = metadata.mode; in set_metadata() 151 inode.metadata.uid = metadata.uid; in set_metadata() [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/procfs/ |
D | mod.rs | 114 metadata: Metadata, field 295 metadata: Metadata { in new() 418 if let FileType::Dir = inode.metadata.file_type { in open() 432 inode.metadata.size = file_size; in open() 440 if let FileType::Dir = guard.metadata.file_type { in close() 463 if inode.metadata.file_type == FileType::Dir { in read_at() 516 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 518 let metadata = inode.metadata.clone(); in metadata() localVariable 520 return Ok(metadata); in metadata() 523 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() [all …]
|
/DragonOS-0.1.9/kernel/src/net/socket/ |
D | sockets.rs | 35 metadata: SocketMetadata, field 73 let metadata = SocketMetadata::new( in new() localVariable 84 metadata, in new() 117 if !self.metadata.options.contains(SocketOptions::BLOCK) { in read() 211 fn metadata(&self) -> Result<SocketMetadata, SystemError> { in metadata() method 212 Ok(self.metadata.clone()) in metadata() 231 metadata: SocketMetadata, field 262 let metadata = SocketMetadata::new( in new() localVariable 273 metadata, in new() 280 PORT_MANAGER.bind_port(self.metadata.socket_type, ip.port, self.handle.clone())?; in do_bind() [all …]
|
D | mod.rs | 212 fn metadata(&self) -> Result<SocketMetadata, SystemError>; in metadata() method 317 if socket.metadata().unwrap().socket_type == SocketType::SeqpacketSocket { in close() 322 PORT_MANAGER.unbind_port(socket.metadata().unwrap().socket_type, ip.port)?; in close() 372 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 391 metadata: SocketMetadata, field 403 metadata: socket.metadata().unwrap(), in new() 412 metadata: socket.metadata().unwrap(), in from_socket()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | mount.rs | 114 return Ok(self.inner_inode.fs().root_inode().metadata()?.inode_id in is_mountpoint_root() 115 == self.inner_inode.metadata()?.inode_id); in is_mountpoint_root() 124 let inode_id = self.metadata().unwrap().inode_id; in overlaid_inode() 195 fn metadata(&self) -> Result<super::Metadata, SystemError> { in metadata() method 196 return self.inner_inode.metadata(); in metadata() 200 fn set_metadata(&self, metadata: &super::Metadata) -> Result<(), SystemError> { in set_metadata() 201 return self.inner_inode.set_metadata(metadata); in set_metadata() 231 let inode_id = self.inner_inode.find(name)?.metadata()?.inode_id; in unlink() 243 let inode_id = self.inner_inode.find(name)?.metadata()?.inode_id; in rmdir() 338 let metadata = self.inner_inode.metadata()?; in mount() localVariable [all …]
|
D | syscall.rs | 470 let metadata = inode.metadata()?; in chdir() localVariable 471 if metadata.file_type == FileType::Dir { in chdir() 815 let metadata = file.lock().metadata()?; in do_fstat() localVariable 816 kstat.size = metadata.size as i64; in do_fstat() 817 kstat.dev_id = metadata.dev_id as u64; in do_fstat() 818 kstat.inode = metadata.inode_id.into() as u64; in do_fstat() 819 kstat.blcok_size = metadata.blk_size as i64; in do_fstat() 820 kstat.blocks = metadata.blocks as u64; in do_fstat() 822 kstat.atime.tv_sec = metadata.atime.tv_sec; in do_fstat() 823 kstat.atime.tv_nsec = metadata.atime.tv_nsec; in do_fstat() [all …]
|
D | file.rs | 140 let file_type = inode.metadata()?.file_type; in new() 255 if offset > self.inode.metadata()?.size as usize { in do_write() 270 pub fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 271 return self.inode.metadata(); in metadata() 284 let file_type = self.inode.metadata()?.file_type; in lseek() 301 let metadata = self.metadata()?; in lseek() localVariable 302 pos = metadata.size + offset; in lseek() 381 dirent.d_ino = sub_inode.metadata().unwrap().inode_id.into() as u64; in readdir() 382 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir()
|
D | core.rs | 234 if parent_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 240 if target_inode.metadata()?.file_type != FileType::Dir { in do_remove_dir() 270 if inode.unwrap().metadata()?.file_type == FileType::Dir { in do_unlink_at() 279 if parent_inode.metadata()?.file_type != FileType::Dir { in do_unlink_at()
|
D | mod.rs | 183 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 332 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata() 433 if self.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 450 if result.metadata()?.file_type != FileType::Dir { in lookup_follow_symlink() 478 if inode.metadata()?.file_type == FileType::SymLink && max_follow_times > 0 { in lookup_follow_symlink()
|
D | open.rs | 128 let file_type: FileType = inode.metadata()?.file_type; in do_sys_openat2()
|
/DragonOS-0.1.9/kernel/src/libs/lib_ui/ |
D | textui.rs | 76 let metadata = ScmUiFrameworkMetadata::new("TextUI".to_string(), ScmFramworkType::Text); in textui_framwork_init() localVariable 77 kdebug!("textui metadata: {:?}", metadata); in textui_framwork_init() 79 let vlines_num = (metadata.buf_info().height() / TEXTUI_CHAR_HEIGHT) as usize; in textui_framwork_init() 81 let chars_num = (metadata.buf_info().width() / TEXTUI_CHAR_WIDTH) as usize; in textui_framwork_init() 100 metadata, in textui_framwork_init() 340 textui_framework().metadata.read().buf_info().width() as usize + now_index in get_index_of_next_line() 343 textui_framework().metadata.read().buf_info().width() as usize * y + x in get_index_by_x_y() 400 let mut _binding = textui_framework().metadata.read().buf_info(); in textui_refresh_character() 890 metadata: RwLock<ScmUiFrameworkMetadata>, field 899 metadata: ScmUiFrameworkMetadata, in new() [all …]
|
D | screen_manager.rs | 267 fn metadata(&self) -> Result<ScmUiFrameworkMetadata, SystemError> { in metadata() method 297 let metadata = framework.metadata()?; in scm_framework_enable() localVariable 305 video_refresh_manager().set_refresh_target(&metadata.buf_info)?; in scm_framework_enable() 362 if !(*framework).metadata()?.buf_info.is_double_buffer() { in scm_enable_double_buffer() 436 if framework.metadata()?.buf_info().is_device_buffer() { in true_scm_reinit()
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | mod.rs | 74 let metadata = Metadata { in create_root_inode() localVariable 94 metadata, in create_root_inode() 134 metadata: Metadata, field 159 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 160 return Ok(self.inner.read().metadata.clone()); in metadata() 248 .find(|(_, v)| v.metadata().unwrap().inode_id == ino) in get_entry_name() 258 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata() 285 let info = self.metadata()?; in list() 375 mut metadata: Metadata, in new() 380 metadata.file_type = inode_type.into(); in new() [all …]
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | pipe.rs | 54 metadata: Metadata, field 114 metadata: Metadata { in new() 266 fn metadata(&self) -> Result<crate::filesystem::vfs::Metadata, SystemError> { in metadata() method 268 let mut metadata = inode.metadata.clone(); in metadata() localVariable 269 metadata.size = inode.data.len() as i64; in metadata() 271 return Ok(metadata); in metadata() 406 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | tty_device.rs | 58 metadata: Metadata, field 70 metadata: Metadata::new(FileType::CharDevice, ModeType::from_bits_truncate(0o755)), in new() 97 dev.inner.write().metadata.raw_dev = dev_num; in new() 109 let dev_num = self.metadata()?.raw_dev; in open() 248 fn metadata(&self) -> Result<crate::filesystem::vfs::Metadata, SystemError> { in metadata() method 249 Ok(self.inner.read().metadata.clone()) in metadata()
|
/DragonOS-0.1.9/kernel/src/filesystem/fat/ |
D | fs.rs | 103 metadata: Metadata, field 120 self.metadata.size = f.size() as i64; in update_metadata() 123 self.metadata.size = d.size(&self.fs.upgrade().unwrap().clone()) as i64; in update_metadata() 186 metadata: Metadata { in new() 306 metadata: Metadata { in new() 1462 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method 1463 return Ok(self.0.lock().metadata.clone()); in metadata() 1468 let old_size = guard.metadata.size as usize; in resize() 1506 let old_size = guard.metadata.size as usize; in truncate() 1582 let file_type = target_guard.metadata.file_type; in unlink() [all …]
|
/DragonOS-0.1.9/docs/kernel/libs/lib_ui/ |
D | scm.md | 37 fn metadata(&self) -> Result<ScmUiFrameworkMetadata, SystemError> {
|