/DragonOS-0.1.8/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 4 core::generate_inode_id, make_rawdev, FilePrivateData, FileSystem, FileType, IndexNode, 78 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 82 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 120 data: &mut FilePrivateData, in read_at() argument 126 if let FilePrivateData::Unused = data { in read_at() 139 data: &mut FilePrivateData, in write_at() argument 145 if let FilePrivateData::Unused = data { in write_at()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 4 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, PollStatus, 72 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 76 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 114 _data: &mut FilePrivateData, in read_at() argument 125 _data: &mut FilePrivateData, in write_at() argument
|
D | zero_dev.rs | 4 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, PollStatus, 72 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 76 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 114 _data: &mut FilePrivateData, in read_at() argument 133 _data: &mut FilePrivateData, in write_at() argument
|
D | mod.rs | 345 _data: &mut super::vfs::FilePrivateData, in open() argument 351 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close() 477 _data: &mut super::vfs::file::FilePrivateData, in read_at() argument 489 _data: &mut super::vfs::file::FilePrivateData, in write_at() argument
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 10 vfs::{file::FileMode, FilePrivateData, FileType, IndexNode, Metadata, ROOT_INODE}, 62 private_data: &'a mut FilePrivateData, in verify_file_private_data() argument 64 if let FilePrivateData::Tty(t) = private_data { in verify_file_private_data() 120 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument 138 *data = FilePrivateData::Tty(p); in open() 147 data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument 181 data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument 232 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 5 core::generate_inode_id, FilePrivateData, FileSystem, FileType, IndexNode, Metadata, 80 _data: &mut FilePrivateData, in read_at() argument 136 _data: &mut FilePrivateData, in open() argument 150 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 159 _data: &mut FilePrivateData, in write_at() argument
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 98 _data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument 118 _data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument 125 _data: &mut crate::filesystem::vfs::FilePrivateData, in open() argument 140 _data: &mut crate::filesystem::vfs::FilePrivateData, in close() argument
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 17 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS}; 93 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 102 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 121 _data: &mut FilePrivateData, in read_at() argument 138 _data: &mut FilePrivateData, in write_at() argument 426 let len = inode.read_at(0, 256, &mut content, &mut FilePrivateData::Unused)?; in lookup_follow_symlink()
|
D | mount.rs | 10 use super::{file::FileMode, FilePrivateData, FileSystem, FileType, IndexNode, InodeId}; 126 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument 130 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 155 data: &mut FilePrivateData, in read_at() argument 165 data: &mut FilePrivateData, in write_at() argument
|
D | file.rs | 15 pub enum FilePrivateData { enum 24 impl Default for FilePrivateData { implementation 98 pub private_data: FilePrivateData, 114 private_data: FilePrivateData::default(), in new()
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 26 file::{FileMode, FilePrivateData}, 324 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 340 *data = FilePrivateData::Procfs(private_data); in open() 347 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 355 FilePrivateData::Procfs(p) => p, in close() 370 data: &mut FilePrivateData, in read_at() argument 385 FilePrivateData::Procfs(p) => p, in read_at() 417 _data: &mut FilePrivateData, in write_at() argument
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 158 _data: &mut super::vfs::FilePrivateData, in open() argument 164 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close() 173 _data: &mut super::vfs::FilePrivateData, in read_at() argument 183 _data: &mut super::vfs::FilePrivateData, in write_at() argument
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 18 file::FilePrivateData, FileSystem, FsInfo, IndexNode, InodeId, Metadata, PollStatus, 122 _data: &mut FilePrivateData, in read_at() argument 154 _data: &mut FilePrivateData, in write_at() argument
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 1139 _data: &mut crate::filesystem::vfs::FilePrivateData, in open() argument 1147 _data: &mut crate::filesystem::vfs::FilePrivateData, in close() argument 1161 _data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument 1171 _data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | fs.rs | 14 file::{FileMode, FilePrivateData}, 1360 _data: &mut FilePrivateData, in read_at() argument 1388 _data: &mut FilePrivateData, in write_at() argument 1555 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 1559 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
|