/DragonOS-0.1.7/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.7/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 133 _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.7/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.7/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.7/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.7/kernel/src/filesystem/vfs/ |
D | mod.rs | 16 pub use self::{core::ROOT_INODE, file::FilePrivateData, mount::MountFS}; 92 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 101 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 120 _data: &mut FilePrivateData, in read_at() argument 137 _data: &mut FilePrivateData, in write_at() argument 422 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.7/kernel/src/filesystem/procfs/ |
D | mod.rs | 25 file::{FileMode, FilePrivateData}, 321 fn open(&self, data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 337 *data = FilePrivateData::Procfs(private_data); in open() 344 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 352 FilePrivateData::Procfs(p) => p, in close() 367 data: &mut FilePrivateData, in read_at() argument 382 FilePrivateData::Procfs(p) => p, in read_at() 414 _data: &mut FilePrivateData, in write_at() argument
|
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/ |
D | mod.rs | 156 _data: &mut super::vfs::FilePrivateData, in open() argument 162 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close() 171 _data: &mut super::vfs::FilePrivateData, in read_at() argument 181 _data: &mut super::vfs::FilePrivateData, in write_at() argument
|
/DragonOS-0.1.7/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.7/kernel/src/net/ |
D | socket.rs | 1005 _data: &mut crate::filesystem::vfs::FilePrivateData, in open() argument 1013 _data: &mut crate::filesystem::vfs::FilePrivateData, in close() argument 1023 _data: &mut crate::filesystem::vfs::FilePrivateData, in read_at() argument 1033 _data: &mut crate::filesystem::vfs::FilePrivateData, in write_at() argument
|
/DragonOS-0.1.7/kernel/src/filesystem/fat/ |
D | fs.rs | 14 file::{FileMode, FilePrivateData}, 1356 _data: &mut FilePrivateData, in read_at() argument 1384 _data: &mut FilePrivateData, in write_at() argument 1513 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 1517 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close()
|